zh_stoqnov

Cinema

Oct 26th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Cinema
  4. {
  5. class Cinema
  6. {
  7. public static void Main(string[] args)
  8. {
  9. string typeProjection = Console.ReadLine();
  10. int rows = int.Parse(Console.ReadLine());
  11. int cols = int.Parse(Console.ReadLine());
  12. double hall = (double)rows * (double)cols;
  13. double price = 0;
  14. if (typeProjection == "Premiere")
  15. {
  16. price = 12;
  17. Console.WriteLine("{0:0.00} leva", hall * price);
  18. }
  19. else if(typeProjection == "Normal")
  20. {
  21. price = 7.50;
  22. Console.WriteLine("{0:0.00} leva", hall * price);
  23. }
  24. else if(typeProjection == "Discount")
  25. {
  26. price = 5;
  27. Console.WriteLine("{0:0.00} leva", hall * price);
  28. }
  29.  
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment