Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace _1.Cinema
- {
- using System;
- public class Cinema
- {
- public static void Main(string[] args)
- {
- checked
- {
- string typeOfProjection = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int columns = int.Parse(Console.ReadLine());
- int countWatchingPeople = rows * columns;
- double priceOfTicket = 7.50;
- if (typeOfProjection == "Premiere")
- {
- priceOfTicket = 12.00;
- }
- else if (typeOfProjection == "Discount")
- {
- priceOfTicket = 5.00;
- }
- double incomesProjection = countWatchingPeople * priceOfTicket;
- Console.WriteLine("{0:f2} leva", incomesProjection);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement