How to create a seemless infinite code and loop that has a termination condition? Can that code be interconnected to other codes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create a seemless infinite code and loop that has a termination condition? Can that code be interconnected to other codes

I am just a rookie coder so this is just a question that I thought of. The answer to the questions above could help me create a more complex code.Thanks for the coorperation.

8th Sep 2018, 9:20 AM
Jazshan a/l Thirumaran
Jazshan a/l Thirumaran - avatar
2 Answers
0
on SL, no, but in general, you would have the entire program in a while(true) loop and if a certain condition is met, you would just break the loop.
8th Sep 2018, 10:00 AM
hinanawi
hinanawi - avatar
- 1
thanks
15th Sep 2018, 8:27 AM
Jazshan a/l Thirumaran
Jazshan a/l Thirumaran - avatar