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 _09_Cinema
- {
- class cinema
- {
- static void Main(string[] args)
- {
- string cinema = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int colums = int.Parse(Console.ReadLine());
- double result = 0;
- if (cinema == "Premiere")
- {
- result = rows * colums * 12;
- Console.WriteLine("{0:f2}" , result);
- }
- else if (cinema == "Normal")
- {
- result = rows * colums * 7.50;
- Console.WriteLine("{0:f2}" , result);
- }
- else if (cinema == "Discount")
- {
- result = rows * colums * 5.00;
- Console.WriteLine("{0:f2}" , result);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment