+ 1

how to print these using only nested for loop?

>java NestedLoop length = 2 □■■□□■■□ ■□□■■□□■ >java NestedLoop length = 3 □□■■□□□□■■□□□□■■□□ □■□□■□□■□□■□□■□□■□ ■□□□□■■□□□□■■□□□□■

10th Aug 2018, 1:56 AM
Sujan Khadka
Sujan Khadka - avatar
2 ответов
+ 1
Hello, are conditional statements admitted? If yes, this code has tree nested for loops and one if-else statement. https://code.sololearn.com/cKzB1y1zvTE1/#java
10th Aug 2018, 7:08 AM
Enrico Menabeni
Enrico Menabeni - avatar
0
Yeah, thank you
10th Aug 2018, 7:10 AM
Sujan Khadka
Sujan Khadka - avatar