Spocoman

Birthday Party

Sep 2nd, 2024 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         double rent = Double.parseDouble(scanner.nextLine()),
  7.                 cake = rent / 5,
  8.                 drinks = cake * 0.55,
  9.                 animator = rent / 3;
  10.  
  11.         System.out.println(rent + cake + drinks + animator);
  12.     }
  13. }
Add Comment
Please, Sign In to add comment