#wrong logic?

1 messages ยท Page 1 of 1 (latest)

slate pineBOT
#

<@&987246399047479336> please have a look, thanks.

slate pineBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

It seems like you are questioning the logic of your for loop. Without knowing the specific requirements of your assignment, it is difficult to determine if the logic is indeed incorrect. However, I can provide some general guidance.

In the given for loop statement, the loop will iterate as long as i is less than 100. This means that the loop will execute 99 times since it starts from 1 and ends at 99 (excluding 100). If this is what you intended, then the logic might be correct.

However, if you want the loop to execute exactly 100 times, you should modify the condition to i <= 100. This way, i will start from 1 and continue until it reaches or exceeds 100.

Keep in mind that the specific requirements of your assignment may dictate a different approach or condition for your loop. It's always a good idea to carefully read and understand the instructions before implementing any code.