Advertisement
AJMitev

PlatesPerMinute

Jan 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace PlatesPerMinute
  8. {
  9. class PlatesPerMinute
  10. {
  11. static void Main()
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14. double w = double.Parse(Console.ReadLine());
  15. double l = double.Parse(Console.ReadLine());
  16. int m = int.Parse(Console.ReadLine());
  17. int o = int.Parse(Console.ReadLine());
  18.  
  19. int area = n * n;
  20. double plates = w * l;
  21. int bench = m * o;
  22. double howManyPlates = (area - bench) / plates;
  23. double platesPerMinute = howManyPlates * 0.2;
  24.  
  25. Console.WriteLine(howManyPlates);
  26. Console.WriteLine(platesPerMinute);
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement