Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main() {
- double heigth;
- double width;
- cin >> heigth >> width;
- double length_room = (width * 100) - 100;
- double seats_row = floor(length_room / 70);
- double width_room = heigth * 100;
- double seats_number = floor(width_room / 120);
- double total_seats = (seats_row * seats_number) - 3;
- cout << total_seats << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement