Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- double h = double.Parse(Console.ReadLine());
- double w = double.Parse(Console.ReadLine());
- double wInCm = w * 100;
- double hInCm = h * 100;
- double withoutCorridor = wInCm - 100;
- double seats = Math.Round(withoutCorridor / 70);
- double rows = Math.Round(hInCm / 120);
- double totalSeats = (seats * rows) - 3;
- Console.WriteLine(totalSeats);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment