Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Lesson4Exsersise
- {
- class Program
- {
- static void Main(string[] args)
- {
- string type = Console.ReadLine();
- int rows = int.Parse(Console.ReadLine());
- int colums = int.Parse(Console.ReadLine());
- switch (type)
- {
- case "Premiere": Console.WriteLine($"{(rows * colums * 12.00):f2} leva"); break;
- case "Normal": Console.WriteLine($"{(rows * colums * 7.50):f2} leva"); break;
- case "Discount": Console.WriteLine($"{(rows * colums * 5.00):f2} leva"); break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement