Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package kursova_rabota;
- import java.util.Scanner;
- public class edno_edno {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner sc = new Scanner(System.in);
- double length = Double.parseDouble(sc.nextLine());
- double width = Double.parseDouble(sc.nextLine());
- double cols = Math.floor((width - 1) / 0.7);
- double rows = Math.floor(length / 1.2);
- double seats = (cols * rows) - 3;
- System.out.format("%.0f", seats);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement