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 Program
- {
- static void Main(string[] args)
- {
- var projection = Console.ReadLine();
- var r = int.Parse(Console.ReadLine());
- var c = int.Parse(Console.ReadLine());
- var places = r * c;
- var price = double.Parse(Console.ReadLine());
- var total = places * price;
- if (projection == "Premiere")
- {
- price = 12.00;
- Console.WriteLine("{0:F2}", total);
- }
- else
- {
- if(projection=="Normal")
- {
- price = 7.50;
- Console.WriteLine("{0}:F2", total);
- }
- else
- {
- if(projection=="Discount")
- {
- price = 5.00;
- Console.WriteLine("{0}:F2", total);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement