Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner scan = new Scanner(System.in);
- double doubleInput1;
- double doubleInput2;
- double Subtotal = doubleInput1 + doubleInput2;
- System.out.println("Please enter 5 prices");
- doubleInput1 = scan.nextDouble();
- doubleInput2 = scan.nextDouble();
- System.out.println("Subtotal:"+Subtotal+"");
Add Comment
Please, Sign In to add comment