Guest User

Untitled

a guest
Nov 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Scanner scan = new Scanner(System.in);
  2. double doubleInput1;
  3. double doubleInput2;
  4. double Subtotal = doubleInput1 + doubleInput2;
  5. System.out.println("Please enter 5 prices");
  6. doubleInput1 = scan.nextDouble();
  7. doubleInput2 = scan.nextDouble();
  8. System.out.println("Subtotal:"+Subtotal+"");
Add Comment
Please, Sign In to add comment