hawzze

C#SoftUni_DanceHall

Jun 27th, 2020
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int lenght = int.Parse(Console.ReadLine());
  10. int weight = int.Parse(Console.ReadLine());
  11. int side = int.Parse(Console.ReadLine());
  12.  
  13. int danceHall = (lenght * 100) * (weight * 100);
  14. int warderobe = 40000;
  15. int bench = danceHall / 10;
  16. int freeSpace = danceHall - warderobe - bench;
  17. double dancers = freeSpace / (40 + 7000);
  18. Console.WriteLine(Math.Floor(dancers));
  19.  
  20. }
  21.  
  22. }
  23. }
RAW Paste Data