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 typeMovie = Console.ReadLine();
- int r = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- double price = (0.0);
- switch (typeMovie)
- {
- case "Premere":
- price = 12.90;
- break;
- case "Normal":
- price = 7.50;
- break;
- case "Discount":
- price = 5.00;
- break;
- }
- double result = (r * c) * price;
- Console.WriteLine("{0:f2}", result + " leva");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement