Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double rent = Double.parseDouble(scanner.nextLine()),
- cake = rent / 5,
- drinks = cake * 0.55,
- animator = rent / 3;
- System.out.println(rent + cake + drinks + animator);
- }
- }
Add Comment
Please, Sign In to add comment