Advertisement
Iskrenov84

УчебнаЗала

Jan 29th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 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 ИзпитниЗадачи2016
  8. {
  9. class УчебнаЗала
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. double h = double.Parse(Console.ReadLine());
  15. double w = double.Parse(Console.ReadLine());
  16.  
  17. h = h * 100;
  18. w = w * 100;
  19.  
  20. // Дължина на работните места (DRM)
  21. double DRM = Math.Floor((w - 100) / 70);
  22.  
  23. // Широчина на работните места (SRM)
  24. double SRM = Math.Floor(h / 120);
  25.  
  26.  
  27. double Reshenie = (DRM * SRM) - 3;
  28. Console.ForegroundColor = ConsoleColor.Green;
  29. Console.WriteLine("Брой места: "+Reshenie);
  30. Console.Read();
  31.  
  32.  
  33.  
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement