desislava777

cinema

Oct 31st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 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(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. switch (projection)
  18. {
  19. case "Premiere": Console.WriteLine("{0:f2}", result * 12.00); break;
  20. case "Normal": Console.WriteLine("{0:f2}", result * 7.50); break;
  21. case "Discount": Console.WriteLine("{0:f2}", result * 5.00); break;
  22. //default: Console.WriteLine("error"); break;
  23. }
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment