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