Advertisement
Anonimka

Untitled

Aug 18th, 2018
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 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 plochki
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  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 obshtaplosht = N * N;
  20. int ploshtpeika = M * O;
  21. int ploshtpokrivane = obshtaplosht - ploshtpeika;
  22. double ploshtplochka = W * L;
  23. double plochki =obshtaplosht / ploshtplochka;
  24. double vreme =plochki * 0.2;
  25.  
  26. Console.WriteLine(plochki);
  27. Console.WriteLine(vreme);
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement