+ 1

can anybody tell me the prog for desired output in java?

1#2##3###4####

6th May 2018, 1:43 AM
Mritunjay Pandey
Mritunjay Pandey - avatar
5 odpowiedzi
0
just make a nested for loop: for(i=1;i<=4;i++) { System.out.print(i); for(j=1;j<=i;j++) { System.out.print('#'); } }
6th May 2018, 2:37 AM
Shashikant Kadam
Shashikant Kadam - avatar
0
not up to the mark try it first then tell me
6th May 2018, 2:56 AM
Mritunjay Pandey
Mritunjay Pandey - avatar
6th May 2018, 3:39 AM
Shashikant Kadam
Shashikant Kadam - avatar
0
thanks bro
6th May 2018, 3:41 AM
Mritunjay Pandey
Mritunjay Pandey - avatar
0
bro tell me this question without nested loop
6th May 2018, 3:52 AM
Mritunjay Pandey
Mritunjay Pandey - avatar