Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Cinema
- {
- class Cinema
- {
- public static void Main(string[] args)
- {
- string typeProjection = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int cols = int.Parse(Console.ReadLine());
- double hall = (double)rows * (double)cols;
- double price = 0;
- if (typeProjection == "Premiere")
- {
- price = 12;
- Console.WriteLine("{0:0.00} leva", hall * price);
- }
- else if(typeProjection == "Normal")
- {
- price = 7.50;
- Console.WriteLine("{0:0.00} leva", hall * price);
- }
- else if(typeProjection == "Discount")
- {
- price = 5;
- Console.WriteLine("{0:0.00} leva", hall * price);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment