Exercise02_03

 1 import java.util.Scanner;
 2 public class Mi {
 3     public static void main(String[] args){
 4         Scanner input = new Scanner(System.in);
 5         System.out.println("Enter a value for feet:");
 6         double feet = input.nextDouble();
 7         double meters = 0.305*feet;
 8         System.out.println(feet + " feet is " + meters +" meters");
 9         
10         
11     }
12 }
原文地址:https://www.cnblogs.com/cherrydream/p/9800666.html