Advertisement
Guest User

01. Поправка на плочки

a guest
Oct 26th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. var N = int.Parse(Console.ReadLine());
  8. var W = double.Parse(Console.ReadLine());
  9. var L = double.Parse(Console.ReadLine());
  10. var M = double.Parse(Console.ReadLine());
  11. var O = double.Parse(Console.ReadLine());
  12.  
  13. var TotalArea = Math.Pow((double)N, 2);
  14. var AreaToCover = TotalArea - (M * O);
  15. var SizeOfPlate = W * L;
  16. var NumberPlatestoCover = AreaToCover / SizeOfPlate;
  17. Console.WriteLine(NumberPlatestoCover);
  18. var TimeToInsert = NumberPlatestoCover * 0.2;
  19. Console.WriteLine(TimeToInsert);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement