Pyramid Shape

public class PyramidShape {

public static void main(String[] args) {

for(int j=0;j<10;j++)
{

for (int i=0;i<=j;i++)
{
System.out.print("*");
}
System.out.print("\n");
}

}
}

Output:
*
**
***
****
*****
******
*******
********
*********
**********