+ 2

Can someone show an example of nested for loops?

17th Mar 2018, 1:17 AM
Alejandro Martinez
Alejandro Martinez - avatar
5 ответов
+ 6
Assuming you need help in c++ : for(int i=1;i<=5;i++) { for(int j=1;j<=5;j++) cout<<"Hello"; } From now on , please specify the language you want help in.
17th Mar 2018, 1:56 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
17th Mar 2018, 7:17 AM
David Akhihiero
David Akhihiero - avatar
+ 1
Python nested loops for i in range(5): for j in range(5): print("*",end=' ') print ()
17th Mar 2018, 2:03 AM
Manorama
Manorama - avatar
+ 1
thanks guys!
18th Mar 2018, 2:54 AM
Alejandro Martinez
Alejandro Martinez - avatar