Advertisement
jkonova

Untitled

Jul 19th, 2021
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Cinema
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string typeOfProjection = Console.ReadLine();
  10. int r = int.Parse(Console.ReadLine());
  11. int c = int.Parse(Console.ReadLine());
  12.  
  13. double income = 0.00;
  14.  
  15. switch (typeOfProjection)
  16. {
  17. case "Premiere": income = r * c * 12; break;
  18. case "Normal": income = r * c * 7.5; break;
  19. case "Discount": income = r * c * 5; break;
  20. }
  21. Console.WriteLine($"{income:f2}");
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement