Need programming help with a C# coding question & help re: Arrays w/ a foreach loop
April 20, 2022 0 Comments
Can you help me write the code for this? Once I see it, I have a much better understanding and can practice.Here is the assignment:Create an
array of integers with 1000 elements.
Fill the array with random numbers.
Use a foreach loop to print all integers in the array.
random = new Random();int randomNumber
randomNumber = random.Next(0, 100); // place
this line in the loop