Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CinemaExercize
- {
- class Program
- {
- static void Main()
- {
- string type = Console.ReadLine();
- double rows = double.Parse(Console.ReadLine());
- double columns = double.Parse(Console.ReadLine());
- double seats = rows * columns;
- double premiera = seats * 12;
- double normal = seats * 7.5;
- double discount = seats * 5;
- if (type == "Premiere")
- {
- Console.WriteLine("{0:F2} leva", premiera);
- }
- if (type == "Normal")
- {
- Console.WriteLine("{0:F2} leva", normal);
- }
- if (type == "Discount")
- {
- Console.WriteLine("{0:F2} leva", discount);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement