EmoRz

Cinema

Jun 30th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 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 Cinema
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var projection = Console.ReadLine();
  14. var colon = int.Parse(Console.ReadLine());
  15. var row = int.Parse(Console.ReadLine());
  16. var result = 0.0;
  17.  
  18. if (projection == "Premiere")
  19. {
  20. result = (colon * row) * 12.00;
  21. }
  22. if (projection == "Normal")
  23. {
  24. result = (colon * row) * 7.50;
  25. }
  26. if (projection == "Discount")
  27. {
  28. result = (colon * row) * 5.00;
  29. }
  30. Console.WriteLine("{0:f2} leva", result);
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment