Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class DanceHall {
- public static void main(String[] agrs) {
- Scanner scan = new Scanner(System.in);
- double L = Double.parseDouble(scan.nextLine());
- double W = Double.parseDouble(scan.nextLine());
- double A = Double.parseDouble(scan.nextLine());
- double hall = (L * 100) * (W * 100);
- double wardrobe = (A * 100) * (A * 100);
- double bench = hall / 10;
- double freeSpace = hall - wardrobe - bench;
- double dancers=freeSpace/ (40 + 7000);
- System.out.println((int)Math.floor(dancers));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement