Advertisement
Filirien

Untitled

Mar 26th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 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. string projection = Console.ReadLine().ToLower();
  14.  
  15. var rows = int.Parse(Console.ReadLine());
  16. var columns = int.Parse(Console.ReadLine());
  17. var hall = rows * columns;
  18. var praice = 0.0;
  19.  
  20. if (projection == "premiere")
  21. {
  22. praice = 12.00;
  23. }
  24. else if (projection == "normal")
  25. {
  26. praice = 7.50;
  27. }
  28. else if (projection == "discount")
  29. {
  30. praice = 5.00;
  31. }
  32. var result = hall * praice;
  33. Console.WriteLine($"{result:f2} leva");
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement