Advertisement
mswi12

Training Lab ver.2

Aug 24th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.lang.Math;
  3.     public class TrainingLab {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         Double width = Double.parseDouble(scanner.nextLine());
  7.         Double length = Double.parseDouble(scanner.nextLine());
  8.         Double deskRows = Math.floor((width * 100) /120);
  9.         Double deskNumber = Math.floor(((length * 100) - 100)  / 70);
  10.         int allDeskPlace = (int) ((deskRows * deskNumber) - 3);
  11.         System.out.println(allDeskPlace);
  12.        
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement