While loop

in loop •  4 years ago 

"Hey joe; go to the town and don't come back until you find the doctor"
Well, we call it a while loop. It says something like
while
the doctor is not found
keep searching

In other words, it first checks if the doctor is not found, then if it is true, it will keep searching.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!