Advertisement
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);
- int hallRent = Integer.parseInt(scanner.nextLine());
- double statues = hallRent * 0.7,
- catering = statues * 0.85,
- soundSystem = catering / 2;
- System.out.printf("%.2f\n", hallRent + statues + catering + soundSystem);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement