Hello everyone! I'm new to c# and i've come on here hoping your knowledge can help me out. I'm trying teach myself at home but have got really stuck on this question, any help would be great
"Declare an integer array of 10 elements. Fill the elements with values that the user types in at the keyboard. Display these values on the console."
I think this seems simple enough but I can't seem to fill the elements with what the user types in without writing:
elements[0] = Console.ReadLine();
elements[1] = Console.ReadLine();
elements[2] = Console.ReadLine();
This gets long and 'feels' wrong I think there is a way of just filling them all
And then the next question is this:
"Extend your program from activity 1 to calculate the sum and average of the numbers stored in the array. Display each number on the console with a message stating whether it is below average, above average or equal to the average."
This is way beyond what i'm capable of yet, help would be appreciated! thank you