Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.lang.Math;
- public class TrainingLab {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- Double width = Double.parseDouble(scanner.nextLine());
- Double length = Double.parseDouble(scanner.nextLine());
- Double deskRows = Math.floor((width * 100) /120);
- Double deskNumber = Math.floor(((length * 100) - 100) / 70);
- int allDeskPlace = (int) ((deskRows * deskNumber) - 3);
- System.out.println(allDeskPlace);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement