0

We can always convert a while loop into a for loop ?

21st Dec 2018, 6:01 PM
Sohila Osama
Sohila Osama - avatar
2 Answers
+ 1
Yes you can convert but for loop generally used when limit of condition is pre estimeted and while loop is used when we don't know the limit
21st Dec 2018, 6:49 PM
MsJ
MsJ - avatar
+ 10
If you mean rewrite then yes.
21st Dec 2018, 6:35 PM
r8w9
r8w9 - avatar