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 Cinema
- {
- class Program
- {
- static void Main(string[] args)
- {
- string projection = Console.ReadLine().ToLower();
- int rows =int.Parse( Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- double total = rows * columns;
- if (projection == "premiere")
- {
- Console.WriteLine("{0:f2}" + "leva", total * 12.00);
- }
- else if (projection == "normal")
- {
- Console.WriteLine("{0:f2}" +"leva", total * 7.50);
- }
- else if (projection == "discount")
- {
- Console.WriteLine("{0:f2}" + "leva",total * 5.00);
- }
- else
- Console.WriteLine("error");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement