+ 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??

13th Aug 2018, 8:52 AM
Saed Osman Ibrahim
Saed Osman Ibrahim - avatar
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
13th Aug 2018, 9:06 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 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
13th Aug 2018, 9:00 AM
Vedant Bang
Vedant Bang - avatar
+ 1
https://code.sololearn.com/ckH1NTsoFZXX/?ref=app
13th Aug 2018, 9:04 AM
Vedant Bang
Vedant Bang - avatar
0
Thanks #Vendant, i know what Loop is.. please may you give me a real life example of how we need loop??
13th Aug 2018, 9:02 AM
Saed Osman Ibrahim
Saed Osman Ibrahim - avatar
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?
13th Aug 2018, 9:08 AM
Saed Osman Ibrahim
Saed Osman Ibrahim - avatar
0
it's not necessary to use it always... when it is needed, use the same
13th Aug 2018, 9:09 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
yeah.
13th Aug 2018, 9:10 AM
Saed Osman Ibrahim
Saed Osman Ibrahim - avatar