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

Loops

Can someone help me with loops please

19th Dec 2016, 1:10 PM
StorM Art
StorM Art - avatar
5 Answers
+ 23
example: for(int i=1; i<=100; i++){ cout<<"Hello!"<<endl; }
19th Dec 2016, 1:43 PM
Jobelle
Jobelle - avatar
+ 2
loops help us. they run same code multiple times. suppose u want to print hello in 100 lines. u cant do it manually. so we use loops
19th Dec 2016, 1:18 PM
manish rawat
manish rawat - avatar
+ 1
Have you realised that X+=1, x= ++x , and x =x+1 are the same!?
19th Apr 2020, 5:32 AM
Mutebi Anold
Mutebi Anold - avatar
0
can u show meh an example
19th Dec 2016, 1:39 PM
StorM Art
StorM Art - avatar
0
If (a==2626){ cout << "correct!"; }
19th Dec 2016, 4:33 PM
Nathan
Nathan - avatar