+ 1
can anybody tell me the prog for desired output in java?
1#2##3###4####
5 Réponses
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('#');
}
}
0
not up to the mark try it first then tell me
0
thanks bro
0
bro tell me this question without nested loop