Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
93
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.  
  3. namespace _11.Cinema
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string projection = Console.ReadLine().ToLower();
  10. int rows = int.Parse(Console.ReadLine());
  11. int columns = int.Parse(Console.ReadLine());
  12.  
  13. int space = rows * columns;
  14. double income = -1;
  15.  
  16. switch (projection)
  17. {
  18. case ("premiere"):
  19. income = space * 12;
  20. break;
  21. case ("normal"):
  22. income = space * 7.50;
  23. break;
  24. case ("discount"):
  25. income = space * 5;
  26. break;
  27. }
  28. Console.WriteLine($"{income:f2}" + " leva");
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement