lol1234561

Untitled

Feb 14th, 2023
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Main {
  3.     public static void main(String[] args) {
  4. Scanner keyboard = new Scanner(System.in);
  5.  
  6. int age;
  7. String height;
  8. double weight;
  9.  
  10.         System.out.println("how old are you? ");
  11.         age = keyboard.nextInt();
  12.         System.out.println("How tall are you? ");
  13.         height = keyboard.next();
  14.         System.out.println("How much do you weigh? ");
  15.         weight = keyboard.nextDouble();
  16.  
  17.         System.out.println("So you're " + age + " years old, " + height + " feet tall and " + weight + " kg heavy.");
  18.  
  19.  
  20.  
  21.  
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment