package javaapplication38;
public class JavaApplication38 {
public static void main(String[] args) {
int i,j;
for(i=1;i<=5;i++)
for(j=1;j<=i;j++) {
{
System.out.print(i);
}
System.out.println();
}
}
}
--- Update ---
m geting output but its output m getting like this 1
2
2
3
3
3
4
4
4
4
5
5
5
5
5
BUILD SUCCESSFUL (total time: 0 seconds)
as the out put should beee 1
22
333
4444
55555
getting oputput in one line below only oplz help me so that i can get the above one output plz help so wat can i make changes in the code