Can anyone tell me the difference bet for loop and while loop
execution?
_______________ _____
for (i=0 ; i<10 ; i++)
; /* Do nothing*/
print i;
_______________ ____
i=0;
while (i<10) {
i++;
}
print i;
_______________ _____
wat will be the output?
please expain ur ans
execution?
_______________ _____
for (i=0 ; i<10 ; i++)
; /* Do nothing*/
print i;
_______________ ____
i=0;
while (i<10) {
i++;
}
print i;
_______________ _____
wat will be the output?
please expain ur ans
Comment