Professional Documents
Culture Documents
The else block appears after the body of the loop. The statements in the
else block will be executed after all iterations are completed. The program
exits the loop only after the else block is executed. The else
clause executes after the loop completes normally. This means that
the loop did not encounter a break statement.
Output :
1
2
3
No Break