desislava777

cinema

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