Advertisement
sivancheva

Kino

May 1st, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 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 _11_Cinema
  8. {
  9. class cinema
  10. {
  11. static void Main(string[] args)
  12. {
  13. string projekcija = Console.ReadLine().ToLower();
  14. int r = int.Parse(Console.ReadLine());
  15. int c = int.Parse(Console.ReadLine());
  16. int broiMesta = r * c;
  17. double cenaPremiere = 12;
  18. double cenaNormal = 7.5;
  19. double cenaDiscount = 5;
  20. double prihodPremiere = broiMesta * cenaPremiere;
  21. double prihodNormal = broiMesta * cenaNormal;
  22. double prihodDiscount = broiMesta * cenaDiscount;
  23.  
  24. if (projekcija == "Premiere")
  25. {
  26. Console.WriteLine("{0:f2}", prihodPremiere);
  27. }
  28. else if (projekcija == "Normal")
  29. {
  30. Console.WriteLine("{0:f2}", prihodNormal);
  31. }
  32. else if (projekcija == "Discount")
  33. {
  34. Console.WriteLine("{0:f2}", prihodDiscount);
  35. }
  36.  
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement