Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ClassRoom {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double hallLenght = Double.parseDouble(scan.nextLine());
- double hallWidht = Double.parseDouble(scan.nextLine());
- double clearHallWidth = (hallWidht * 100) - 100; //with out the hallWay
- double places = clearHallWidth / 70; // Deviding the hallWIdth by the TableWith
- double linesWithPlaces = (hallLenght * 100) / 120;
- double overallWorkPlaces = (places * linesWithPlaces) - 3;
- System.out.printf("%.0f", overallWorkPlaces);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement