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 Cinema
- {
- class Program
- {
- static void Main(string[] args)
- {
- var projection = Console.ReadLine();
- var colon = int.Parse(Console.ReadLine());
- var row = int.Parse(Console.ReadLine());
- var result = 0.0;
- if (projection == "Premiere")
- {
- result = (colon * row) * 12.00;
- }
- if (projection == "Normal")
- {
- result = (colon * row) * 7.50;
- }
- if (projection == "Discount")
- {
- result = (colon * row) * 5.00;
- }
- Console.WriteLine("{0:f2} leva", result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment