#I want this program to go from 10 - 0 and 0 - 10 and not to include the negative 1

5 messages · Page 1 of 1 (latest)

tribal heathBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

unborn ivy
#

for (int i = 0; i < 11; i++)
and
for (int i = 10; i >= 0; i--)

old summit
#

Better yet, for(int i = 11; i-- != 0;).

#

Will work even for unsigned integer types.

tribal heathBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.