Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _11_Cinema
- {
- class cinema
- {
- static void Main(string[] args)
- {
- string projekcija = Console.ReadLine().ToLower();
- int r = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- int broiMesta = r * c;
- double cenaPremiere = 12;
- double cenaNormal = 7.5;
- double cenaDiscount = 5;
- double prihodPremiere = broiMesta * cenaPremiere;
- double prihodNormal = broiMesta * cenaNormal;
- double prihodDiscount = broiMesta * cenaDiscount;
- if (projekcija == "Premiere")
- {
- Console.WriteLine("{0:f2}", prihodPremiere);
- }
- else if (projekcija == "Normal")
- {
- Console.WriteLine("{0:f2}", prihodNormal);
- }
- else if (projekcija == "Discount")
- {
- Console.WriteLine("{0:f2}", prihodDiscount);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement