Advertisement
Guest User

TheBiggestOf3Numbers

a guest
Mar 22nd, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. static void Main()
  2.         {
  3.             float a = float.Parse(Console.ReadLine());
  4.             float b = float.Parse(Console.ReadLine());
  5.             float c = float.Parse(Console.ReadLine());
  6.             float biggestNum = a;
  7.  
  8.             if (a < b)
  9.             {
  10.                 biggestNum = b;    
  11.             }
  12.             if (biggestNum < c)
  13.             {
  14.                 biggestNum = c;
  15.             }
  16.             Console.WriteLine(biggestNum);
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement