0
Can someone please provide a simple real-world code example situation of when one would use the while loop?
2 ответов
+ 1
a game loop is one example. in games you typically use a loop to ensure the game continues until some condition stops the game
0
you can use while loop when you want to access a list or a tree, usually when you don't know the number of loops...