You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\\will print word'codechef' only for once as in for loop semicolon is included so it will be terminated immediately after semicolon.(will look like it is a empty loop or no body for the loop)
\\The for loop doesn't work due to semicolon but the print statement works once.
\\ Since there is a semicolon after the for loop so the loop keeps on revolving between the for loop and the semicolon and when the condition reaches its end, it shifts to the next statement so the 5th "codechef" gets printed once