Guest User

Cinema

a guest
Dec 15th, 2017
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 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 ConsoleApplication3
  8. {
  9. class Program
  10. {
  11. static void Main()
  12. {
  13. string type = Console.ReadLine().ToLower();
  14. var rows = double.Parse(Console.ReadLine());
  15. var cols = double.Parse(Console.ReadLine());
  16.  
  17. double full = rows * cols;
  18. double total = 0;
  19.  
  20. switch (type)
  21. {
  22. case "premiere":
  23. total = full * 12.00;
  24. break;
  25. case "normal":
  26. total = full * 7.50;
  27. break;
  28. case "doscount":
  29. total = full * 5.00;
  30. break;
  31. }
  32. Console.WriteLine("{0:F2}", total + " leva");
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment