Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("Enter the number of people:");
- double numPeople = (double)IO.readInt();
- System.out.println("Enter the number of slices per person:");
- double slices = (double)IO.readInt();
- System.out.println("Enter the number of cans per person:");
- double cans = (double)IO.readInt();
- System.out.println("Enter the price of each pizza:");
- double pizzaCost = IO.readDouble();
- System.out.println("Enter the number slices in the pizza:");
- double slicesinpie = (double)IO.readInt();
- System.out.println("Enter the price of the soda:");
- double sodaCost = IO.readDouble();
- System.out.println("Enter the number of cans in each case:");
- double cansincase = (double)IO.readInt();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement