Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ChangeTiles
- {
- class Program
- {
- static void Main(string[] args)
- {
- int areaSide = int.Parse(Console.ReadLine());
- double tileWidth = double.Parse(Console.ReadLine());
- double tileLength = double.Parse(Console.ReadLine());
- int benchWidth = int.Parse(Console.ReadLine());
- int benchLength = int.Parse(Console.ReadLine());
- int area = areaSide * areaSide - benchLength * benchWidth;
- double tileArea = tileWidth * tileLength;
- double tiles = area / tileArea;
- double time = tiles * 0.2;
- Console.WriteLine($"{tiles}\n{time}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement