π C Pyramid β Part I
1. Half Pyramid Left
Β *
* *
* * *
* * * *
* * * * *main()
{
int r,c;
for(r=5; r>=1; r--)
{
for(c=1; c<r; c++)
{
printf(" ");
}
for(c=5; c>=r; c--)
{
printf("*");
}
printf("\n");
}
getch();
}2. Half Pyramid Right
3. Reverse Half Pyramid Left
4. Reverse Half Pyramid Right
5. Full Pyramid
6. Reverse Full Pyramid
Last updated