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