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;
- namespace ConsoleApplication1
- {
- class ImpressTheGirlfriend
- {
- static void Main()
- {
- decimal r = decimal.Parse(Console.ReadLine());
- decimal d = decimal.Parse(Console.ReadLine());
- decimal e = decimal.Parse(Console.ReadLine());
- decimal b = decimal.Parse(Console.ReadLine());
- decimal m = decimal.Parse(Console.ReadLine());
- r = r / 100 * 3.5M;
- d = d * 1.5M;
- e = e * 1.95M;
- b = b / 2;
- Console.WriteLine("{0:f2}" , Math.Ceiling(Math.Max(Math.Max(r , Math.Max(d , m)) , Math.Max(e , b))));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement