Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. int N = int.Parse(Console.ReadLine());
  8. double W = double.Parse(Console.ReadLine());
  9. double L = double.Parse(Console.ReadLine());
  10. int M = int.Parse(Console.ReadLine());
  11. int O = int.Parse(Console.ReadLine());
  12.  
  13. double obshtaPlosht = N * N;
  14. double peikaPlosht = M * O;
  15. double zaPokrivane = obshtaPlosht - peikaPlosht;
  16. double ploshtPlochki = W * L;
  17. double neobhodimiPlochki = zaPokrivane / ploshtPlochki;
  18. double vreme = neobhodimiPlochki * 0.2;
  19.  
  20. Console.WriteLine(neobhodimiPlochki);
  21. Console.WriteLine(vreme);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement