Advertisement
plamen83

Untitled

Apr 12th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5.     static void Main()
  6.     {
  7.         uint priceInR = uint.Parse(Console.ReadLine());
  8.         uint priceInD = uint.Parse(Console.ReadLine());
  9.         uint priceInE = uint.Parse(Console.ReadLine());
  10.         uint priceInB = uint.Parse(Console.ReadLine());
  11.         uint priceInM = uint.Parse(Console.ReadLine());
  12.  
  13.         decimal R = (priceInR  100M  3.5M);
  14.         decimal D = (priceInD  1.5M);
  15.         decimal E = (priceInE  1.95M);
  16.         decimal B = (priceInB  2M);
  17.  
  18.         Console.WriteLine({0F2}, Math.Ceiling(Math.Max(R, Math.Max(D, Math.Max(E, Math.Max(B, priceInM))))));
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement