what loop used for | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what loop used for

24th Sep 2016, 1:00 PM
Adarsh Satyam
Adarsh Satyam - avatar
7 Answers
+ 1
loop is used when we have to do a similar thing again and again e.g. we have to print numbers 1 to 10 if we want we just go writing system.out.println statement for every number which will be 10 long statement or else just use loop,while x<=10 print the number
9th Oct 2016, 5:33 AM
Mankrit Singh
Mankrit Singh - avatar
0
used for reapeted actions or intructions
24th Sep 2016, 1:31 PM
Ayoub El Khatab
Ayoub El Khatab - avatar
0
give example of respected with explanation
24th Sep 2016, 1:40 PM
Adarsh Satyam
Adarsh Satyam - avatar
0
used for sandwich soul soup
24th Sep 2016, 2:30 PM
Craig Wilcox
Craig Wilcox - avatar
0
As from the name it is clear . Loop is use to execute a set of statement again and again untill a user defined condition is satisfied.
24th Sep 2016, 3:41 PM
Nitin Kumar
Nitin Kumar - avatar
0
I can't understand please make a video for me send me on whatsapp ±91 7081604105 my number
24th Sep 2016, 3:49 PM
Adarsh Satyam
Adarsh Satyam - avatar
0
things that we want to do n number of time instead of writing n line we put that in in loop that runs until condition fails
25th Sep 2016, 9:52 AM
Gurusubramani Kathiresan
Gurusubramani Kathiresan - avatar