Last active
December 22, 2015 20:38
-
-
Save RMcGee/6527414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console.WriteLine("Largest number: Enter 3 numbers - press 'Enter' key after each"); | |
Int32 num1, num2, num3, high, high2; | |
num1 = Int32.Parse(Console.ReadLine()); | |
num2 = Int32.Parse(Console.ReadLine()); | |
num3 = Int32.Parse(Console.ReadLine()); | |
high = Math.Max(num1, num2); | |
high2 = Math.Max(high, num3); | |
Console.WriteLine("The highest number is {0}", high2); | |
Console.ReadLine(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment