Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- var N = int.Parse(Console.ReadLine());
- var W = double.Parse(Console.ReadLine());
- var L = double.Parse(Console.ReadLine());
- var M = double.Parse(Console.ReadLine());
- var O = double.Parse(Console.ReadLine());
- var TotalArea = Math.Pow((double)N, 2);
- var AreaToCover = TotalArea - (M * O);
- var SizeOfPlate = W * L;
- var NumberPlatestoCover = AreaToCover / SizeOfPlate;
- Console.WriteLine(NumberPlatestoCover);
- var TimeToInsert = NumberPlatestoCover * 0.2;
- Console.WriteLine(TimeToInsert);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement