Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class DanceHall_05 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double length = Double.parseDouble(scanner.nextLine());
- double width = Double.parseDouble(scanner.nextLine());
- double sideWardrobe = Double.parseDouble(scanner.nextLine());
- double hallArea = (length * 100) * (width * 100);
- double benchArea = hallArea / 10;
- double wardrobeArea = (sideWardrobe * 100) * (sideWardrobe * 100);
- double freeSpace = hallArea - benchArea - wardrobeArea;
- double dancers = freeSpace / 7040;
- System.out.printf("%.0f",Math.floor(dancers));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement