Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _01.Training_Lab
- {
- class Program
- {
- static void Main(string[] args)
- {
- double height = double.Parse(Console.ReadLine());
- double width = double.Parse(Console.ReadLine());
- width *= 100;
- height *= 100;
- double deskPerRow = Math.Floor((width-100)/70);
- double rows = Math.Floor(height / 120);
- int desks = (int)rows * (int)deskPerRow - 3;
- Console.WriteLine(desks);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement