Advertisement
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;
- class CurrencyCheck
- {
- static void Main(string[] args)
- {
- double rubles = Double.Parse(Console.ReadLine())/100*3.5;
- double dollars = Double.Parse(Console.ReadLine())*1.5;
- double euro = Double.Parse(Console.ReadLine())*1.95;
- double levaB = Double.Parse(Console.ReadLine())/2;
- double levaM = Double.Parse(Console.ReadLine());
- double cheaperOne = Math.Min (rubles, dollars);
- double cheaperTwo = Math.Min(euro, levaB);
- double cheaperThree = Math.Min(cheaperOne, cheaperTwo);
- double cheapest = Math.Min(cheaperThree, levaM);
- Console.WriteLine("{0:N2}",cheapest);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement