import java.util.Scanner;
public class 厘米换算英寸 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入换算多少厘米为英寸:");
double salary =scanner.nextDouble();
System.out.println("英寸:"+salary*0.393700787402);
System.out.println("厘米:"+salary);
????????}
}
import java.util.Scanner;
public class 厘米换算英寸 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入换算多少厘米为英寸:");
double salary =scanner.nextDouble();
System.out.println("英寸:"+salary*0.393700787402);
System.out.println("厘米:"+salary);
}
}