SHARE
TWEET

Untitled

a guest Sep 11th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Source code
  2. 1
  3. import java.util.Scanner;
  4. 2
  5. 3
  6. public class TrainingLab {
  7. 4
  8.     public static void main(String[] args) {
  9. 5
  10.         Scanner scanner = new Scanner(System.in);
  11. 6
  12.         double w = Double.parseDouble(scanner.nextLine());
  13. 7
  14.         double h = Double.parseDouble(scanner.nextLine());
  15. 8
  16.         double wSm = w * 100;
  17. 9
  18.         double wDesk = Math.floor(wSm / 120);
  19. 10
  20.         double hSm = h * 100 - 100;
  21. 11
  22.         double hDesk = hSm / 70;
  23. 12
  24.         double workPl = wDesk * hDesk - 3;
  25. 13
  26.         System.out.printf("%.0f", workPl);
  27. 14
  28.     }
  29. 15
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top