Advertisement
mswi12

Training Lab

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