Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Cinema
- {
- class Program
- {
- static void Main(string[] args)
- {
- string KindProjection = Console.ReadLine().ToLower();
- double r = double.Parse(Console.ReadLine());
- double c = double.Parse(Console.ReadLine());
- double Zala = c * r;
- double Total = 0;
- if (KindProjection == "premiere")
- {
- Total = Zala * 12;
- }
- else if (KindProjection == "normal")
- {
- Total = Zala * 7.5;
- }
- else if (KindProjection == "discount")
- {
- Total = Zala * 5;
- }
- Console.WriteLine($"{Total:F2} leva");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment