public static void Main()
Console.Write("\nFirst integer is: ");
x = int.Parse(Console.ReadLine());
Console.Write("\nSecond integer is: ");
y = int.Parse(Console.ReadLine());
Console.Write("\nThird integer is: ");
z = int.Parse(Console.ReadLine());
int[] arr = new int[] {x, y, z};
int lowest = Lowest(arr);
int highest = Highest(arr);
Console.WriteLine("Largest of three: "+ Math.Max(x, Math.Max(y, z)));
Console.WriteLine("Lowest of three: "+ Math.Min(x, Math.Min(y, z)));
Console.WriteLine("\nThe lowest number is: {0} and the highest number is: {1}", lowest, highest);
public static int Lowest(int[] nums){
for(int i = 0; i < nums.Length; i++){
lowestNum = nums[i] < lowestNum ? lowestNum = nums[i] : lowestNum;
public static int Highest(int[] nums){
int highestNum = nums[0];
for(int i = 0; i < nums.Length; i++){
highestNum = nums[i] > highestNum ? highestNum = nums[i] : highestNum;