Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- class Program
- {
- static void Main()
- {
- decimal rubble = decimal.Parse(Console.ReadLine());
- decimal dollar = decimal.Parse(Console.ReadLine()) *1.5m;
- decimal euro = decimal.Parse(Console.ReadLine()) * 1.95m;
- decimal bOfferInLeva = decimal.Parse(Console.ReadLine());
- decimal MsiteOfferInLeva = decimal.Parse(Console.ReadLine());
- rubble = (rubble / 100) * 3.5m;
- bOfferInLeva /= 2;
- decimal lowestPrice = Math.Min(Math.Min(rubble, dollar), Math.Min(euro, bOfferInLeva));
- lowestPrice = Math.Min(lowestPrice, MsiteOfferInLeva);
- Console.WriteLine("{0:f2}",lowestPrice);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement