Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class BirthdayParty {
- public static void main(String[] args) {
- Scanner scan = new Scanner (System.in);
- int rent = Integer.parseInt (scan.nextLine ());
- double cake = rent * (20.0/100);
- double drinks = cake - (cake * (45.0/100));
- double animator = rent/3.0;
- double budget = rent + cake + drinks + animator;
- System.out.println (budget);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement