
1
22
333
4444
i want output like this please help me

class Pyramid
{
public static void main(String[] args)
{
for(int i=1;i<=4;i++){
for(int j=1;j<=i;j++){
System.out.print(i);
}
System.out.println();
}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.