I'm making a program which has an option to let the user enter data into an array. For example the option will ask the user to enter the make and model of a car which will then be stored as an element in an array. I want to know how I can let the program enter the next car as a different element each loop. For example:
Loop 1: Enter car details ( stored as myArray[1] )
back to start
Loop 2: Enter car details ( stored as myArray[2] )
etc..
what is the most efficient way to do this?