Guest User

Untitled

a guest
Oct 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 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 ClassHall
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Console.Write("Въведете дължина: "); // 15m
  14. double lenght = double.Parse(Console.ReadLine());
  15.  
  16. Console.Write("Въведете ширина: ");
  17. double width = double.Parse(Console.ReadLine()); // 8.9m
  18.  
  19. double row = Math.Truncate(lenght / 1.2);
  20. double place = Math.Truncate((width - 1) / 0.7 * row - 3);
  21.  
  22. Console.Write("Реда: ");
  23. Console.WriteLine(row);
  24.  
  25. Console.Write("Места: ");
  26. Console.WriteLine(place);
  27. }
  28. }
  29. }
Add Comment
Please, Sign In to add comment