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 ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- var projection = Console.ReadLine();
- var row = int.Parse(Console.ReadLine());
- var col = int.Parse(Console.ReadLine());
- double result = row * col;
- switch (projection)
- {
- case "Premiere": Console.WriteLine("{0:f2}", result * 12.00); break;
- case "Normal": Console.WriteLine("{0:f2}", result * 7.50); break;
- case "Discount": Console.WriteLine("{0:f2}", result * 5.00); break;
- //default: Console.WriteLine("error"); break;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment