+ 1
What is the use of LOOP??
Friends I am confused of using Loop, please tell why we need it, because we have a database??
7 Answers
+ 1
Othmaan Ibrahim , below is a simple scenario:
you just want to allow three different attempt to log in... if log in credentials fails , you ask to retry and after three attempt, you suggest that it failed
+ 1
A loop a used to execute a set of statements multiple times, until a condition evaluates to false.
https://code.sololearn.com/cDz1KQ1AT1Sc/?ref=app
+ 1
https://code.sololearn.com/ckH1NTsoFZXX/?ref=app
0
Thanks #Vendant, i know what Loop is.. please may you give me a real life example of how we need loop??
0
Ketan Lalcheta thanks man, today i want to learn more about Loops, do we need to use it all the time or just when making Trying?
0
it's not necessary to use it always... when it is needed, use the same
0
yeah.



