
a java program to print
*
* *
* * *
* * * *
* * * * *
* * * * * *

class Pyramid{
public static void main(String[] args){
int p = 6;
for (int i = 0; i <= 6; i++) {
for (int j = p; j>= 1; j-- )
System.out.print(" ");
p-=1;
for (int k = 1; k <= i; k++)
System.out.print ("*");
System.out.println();
}
}
}

* * *
please print the output of this program.
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.