Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- class One
- {
- static void Main()
- {
- double[] input = new double[5];
- for (int i = 0; i < input.Length; i++)
- {
- input[i] = double.Parse(Console.ReadLine());
- }
- double rubles = input[0];
- double dollars = input[1];
- double euros = input[2];
- double specialOffer = input[3];
- double mSite = input[4];
- double[] prices = new double[5];
- prices[0] = ((rubles / 100) * 3.5);
- prices[1] = (dollars * 1.5);
- prices[2] = (euros * 1.95);
- prices[3] = (specialOffer / 2);
- prices[4] = mSite;
- Console.WriteLine("{0:0.00}", prices.Min());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement