I need a code to see a pyramidal structure create printed pressure entering the last full user. (I have an example of a completed below). I'm new to programming, i can enjoy, but stuck in this problem.
1
222222
33333 33333 33333
4444444 4444444 4444444 4444444
Everyone knows please help me.
Need to print pyramid in successive loop of number in JAVA
/*
    Java Pyramid 5 Example
    This Java Pyramid example shows how to generate pyramid or triangle like
    given below using for loop.
   Â
    12345
    1234
    123
    12
    1
Â
*/
Â
public class JavaPyramid5 {
Â
    public static void main(String[] args) {
       Â
        for(int i=5; i>0 ;i–){
           Â
            for(int j=0; j < i; j++){
                System.out.print(j+1);
            }
           Â
            System.out.println("");
        }
Â
    }
}
Â
/*
Â
Output of the example would be
12345
1234
123
12
1
Â
*/
Â
Â