Wie man Kilometer in Java in Meilen umwandelt
import java.util.Scanner;
public class Rohit {
public static void main (String[]args){
System.out.println("Enter kilometers ");
Scanner sc = new Scanner(System.in);
double kilometers = sc.nextDouble();
double miles = kilometers / 1.6;
System.out.println(miles + " Miles");
}
}
Rohit saha