Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class E01weddingHall {
- 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 sideBar = Double.parseDouble(scanner.nextLine());
- double Room = length * width;
- double Bar = sideBar * sideBar;
- double Dancing = Room * 0.19;
- double SpaceAvailable = (Room - Bar - Dancing) / 3.2;
- System.out.printf("%.0f", Math.ceil(SpaceAvailable));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment