0

what happens when we use the for command once and then the while-do command again instead of while

Hi friends, I wrote this program using java but .. Exactly what happens when we use the for command once and then the while-do command again instead of while, I have seen changes, but I could not define them because I want to write notes and learn that. Please write notes about the change that is happening Knowing the code is correct, but there is a problem with Solo Learn, please help me by using another code editor. It is preferred with writing comments on the code for explanation thank you https://code.sololearn.com/c8wEgCna7SO5

20th Nov 2020, 8:37 AM
STOP
STOP - avatar
3 Respuestas
0
do-while, while, and for are all kinds of loops. You can convert them to each by doing small changes and will see no difference.
20th Nov 2020, 8:45 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
No, when I use for on the same code and do while, I get errors .. Please, when you answer me, answer me by writing the complete code Then, explain what happened because I do not know why errors appear @CarrieForle
20th Nov 2020, 8:57 AM
STOP
STOP - avatar
0
guys ,, Help :(
20th Nov 2020, 5:21 PM
STOP
STOP - avatar