writing contents of array outside of loop
I am taking a c# class and one of my assignments is at the end of my program I need to write out to the console the contents of 2 arrays. All of the names in the array should be listed with a score which is in a different array like this:
I am able to enter all of my names and break out of my loop but when it comes to writing it to the screen in one block I am getting an error that my counter "i" does not exist in the current context.
If I put the code in the loop I have no issue but it doesn't display the way I want.
Any suggestions are appreciated.
Re: writing contents of array outside of loop
Post your code using code tags so we can take a look at what you have.