Advertisement
Guest User

Cinema

a guest
Apr 15th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 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.  
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. string type = Console.ReadLine();
  13. int rows = int.Parse(Console.ReadLine());
  14. int columns = int.Parse(Console.ReadLine());
  15.  
  16.  
  17. switch (type)
  18. {
  19. case "Premiere":
  20. Console.WriteLine("{0:f2} leva", 12 * rows * columns);
  21. break;
  22. case "Normal":
  23. Console.WriteLine("{0:f2} leva", 7.5 * rows * columns);
  24. break;
  25. case "Discount":
  26. Console.WriteLine("{0:f2} leva", 5 * rows * columns);
  27. break;
  28. default:
  29. break;
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement