EmoRz

Untitled

Jul 3rd, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 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. var typeOfProjekt = Console.ReadLine().ToLower();
  14. var row = int.Parse(Console.ReadLine());
  15. var col = int.Parse(Console.ReadLine());
  16. var result = 0.0;
  17.  
  18. if(typeOfProjekt=="premiere")
  19. {
  20. result = (col * row) * 12.00;
  21.  
  22. }
  23. if (typeOfProjekt == "normal")
  24. {
  25. result = (col * row) * 7.50;
  26. }
  27. if (typeOfProjekt == "discount")
  28. {
  29. result = (col * row) * 5.00;
  30. }
  31. Console.WriteLine("{0:f2} leva", result);
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment