Conversion /* * Main.java * * Created on September 27, 2007, 4:03 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package conversion; /** * * @author instructor */ public class Main { /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public static void main(String[] args) { // print out the header System.out.println("Miles"+"\t\t"+"Kilometers"); //define kilometers double kilometers = 0; //start the for loop for (int miles = 1; miles<=10; miles++) { kilometers = miles * 1.609; System.out.println(miles + "\t\t" + kilometers); } } }