// // Name: KMtoMiles.java // ..... // // // Goal: The code will read a val. in km, display its equ. in miles. // import java.util.Scanner; public class KMtoMiles { public static void main(String[] args) { Scanner input = new Scanner(System.in); double KM, MI; System.out.print("Enter val. in KM: "); // p.98 KM = input.nextDouble(); MI = 0.6 * KM; // debug System.out.println(KM + " km is: " + MI + " miles."); } }