+ 1

Could i get examples of nested for statements?

29th Aug 2017, 8:05 AM
Zawe
Zawe - avatar
4 Antworten
+ 10
for(int i=1;i<=10;i=i+2) { for(int j=1;j<=i;j++) System.out.print("*"); System.out.println(); } output: * *** ***** ******* *********
29th Aug 2017, 8:10 AM
P R
P R - avatar
+ 1
if it is possible could i get a little more complicated one? 😁
29th Aug 2017, 11:16 AM
Zawe
Zawe - avatar
0
thx for the link appreciate it 👌
29th Aug 2017, 11:22 AM
Zawe
Zawe - avatar