/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package com.calebfontenot.lab3_1_calebfontenot;
import java.util.Scanner;
@author
public class MilesToKilometers {
public static void main(String[] args)
{
double miles;
double km;
Scanner scanner = new Scanner(System.in);
System.out.println("Please enter miles to convert into kilometers");
miles = scanner.nextDouble();
km = miles * 1.67;
System.out.println("You entered "+miles+" miles which is "+km+" kilometers");
}
}