Social Sciences, asked by wwwm16sj, 11 months ago

differentiate between for loop and while loop​

Answers

Answered by Anonymous
4

In while loop if initialization is done during condition checking, then initialization is done each time the loop iterate. In 'for' loop iteration statement is written at top, hence, executes only after all statements in loop are executed. In 'while' loop, the iteration statement can be written anywhere in the loop.

Answered by Anonymous
5

Answer:

In while loop if initialization is done during condition checking, then initialization is done each time the loop iterate. In 'for' loop iteration statement is written at top, hence, executes only after all statements in loop are executed. In 'while' loop, the iteration statement can be written anywhere in the loop .

Explanation:

plz mark me and follow me . plz I need to your support plz

Similar questions