cd62131

Standard Weight

Feb 2nd, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class StandardWeight {
  4.   public static void main(String[] args) {
  5.     Scanner in = new Scanner(System.in);
  6.     System.out.print("身長 ? ");
  7.     double height = in.nextDouble();
  8.     in.close();
  9.     System.out.println("標準体重: " + (height - 100.) * .9);
  10.   }
  11. }
Add Comment
Please, Sign In to add comment