Advertisement
AJMitev

ClassRoom

Jan 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ClassRoom
  4. {
  5. class ClassRoom
  6. {
  7. static void Main(string[] args)
  8. {
  9. double h = double.Parse(Console.ReadLine());
  10. double w = double.Parse(Console.ReadLine());
  11. double roomRows = Math.Round(h/1.2);
  12. double deskArea = w - 1;
  13. double deskCount = Math.Round(deskArea / 0.7);
  14. Console.WriteLine(roomRows*deskCount-3);
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement