I need to make this program have a counter controlled while loop, it needs to compare a certain number of cars that the user enters and output the information shown. I know how to make the loop run for a certain number of inputs I specify, but not that the user does. this is the code I have so far-
Do you want the user to enter more than one car and later compare those car with each other?
If so, you need to save the respective data of each car at each iteration and later, after the loop finishes, compare them.
Perhaps you should describe better what you want to do.