- 1
WHILE LOOP C++
What real world problems can be solved using the while-loop? I want to understand the many ways we can use this loop, not just by using it as a counter. Although using it as a counter has helped me understand its use, though quite shallowly. I'd like a deeper understanding.
1 Answer
0
Basically loops help in reducing lines of your code.
Below are some examples of loop:
https://code.sololearn.com/ceFJ6Tw0O3Y4/?ref=app
https://code.sololearn.com/cvvkBUD7S1bK/?ref=app
https://code.sololearn.com/cG47qtWe4zho/?ref=app
https://code.sololearn.com/cnN9cljTMDGq/?ref=app
https://code.sololearn.com/c9zSId5lBP02/?ref=app