Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
82
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 Cinema
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string projection = Console.ReadLine().ToLower();
  14. int rows =int.Parse( Console.ReadLine());
  15. int columns = int.Parse(Console.ReadLine());
  16. double total = rows * columns;
  17.  
  18. if (projection == "premiere")
  19. {
  20. Console.WriteLine("{0:f2}" + "leva", total * 12.00);
  21. }
  22. else if (projection == "normal")
  23. {
  24. Console.WriteLine("{0:f2}" +"leva", total * 7.50);
  25.  
  26. }
  27. else if (projection == "discount")
  28. {
  29. Console.WriteLine("{0:f2}" + "leva",total * 5.00);
  30.  
  31. }
  32.  
  33. else
  34. Console.WriteLine("error");
  35.  
  36.  
  37.  
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement