How do I stop a table at 25 lines?

I am writing a program that allows the user to input the starting integer but I need to stop it at 25 lines. Does anyone have any suggestions besides learning how to read the users mind:)
If it's as simple as you seem to be describing it, why not just add 25 to the start location they enter?
Well it isn't just that simple is the thing. It is a for loop that allows the user to enter the starting Celsius temperature and then converts it to Rankin, but I need to stop it after just 25 lines.
When you say "stop it at 25 lines," what exactly do you mean: that the loop should only execute 25 times? That should be simple, if it's what you want to do.
You hit the nail on the head! I need to execute the program 25 times. Have any ideas?
Just create a loop that terminates automatically once it's gone through 25 iterations.
for(int i = 0; i <= 24; i++)
This should work fairly well.
Topic archived. No new replies allowed.