using System; /* * Complete the following code to make the program work * * Ten random numbers are generated * The program stores and displays the lowest and highest numbers * */ namespace findLowAndHigh { class Program { static void Main(string[] args) { Random genRand = new Random(); int low = 101, hi = 0, newNum = 0; int i = 0; for (i = 0; i < 10; i++) { newNum = genRand.Next(1, 101); Console.WriteLine("{0}\t{1}",i+1,newNum); if (newNum > hi) { hi = newNum; } if (newNum < low) { low = newNum; } } Console.WriteLine("\nHighest number was {0} and Lowest number was {1}",hi,low); Console.ReadLine(); } } }