According to my teacher, for-loop is always executed at least once, even if the condition is not met.
Example (for example, I know this from C ++):
for (int i=6; i <=5; i++) { //irrelevant for this question }
According to her, this cycle will be performed at least once, but is it not, or am I missing something? Is there any case, no matter what language it will be run once? To eliminate the idea in advance: yes, it was about cycles, not about making loops.
Edit
Thanks for all these quick answers, I think this case is already closed. Good day / night.
source share