A WHILE loop is more flexible than FOR loop.

A WHILE loop is more flexible than FOR loop. Correct Answer True

Since we can’t use a signal or variable in the loop range statement, so the FOR loop always runs for a specified or constant number of times. Whereas a WHILE loop can be used to run a loop and we don’t need to know that how many times the loop must be executed.
Bissoy MCQ

Related Questions

Which statement is correct among the mentioned statements? i. The for loop works faster than a while loop ii. for( ; ; )implements an infinite loop
L is older than M and taller than N. O is younger than P, older than N and shorter than Q. R is older than S, younger than N, shorter than S and taller than Q. S is older than L, M, O, P, Q, R and S is necessarily false?