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