C PROGRAM TO MAKE A RIGHT POINTED PYRAMID
#include<stdio.h>
main()
{
int i,j,k,row,count,temp;
printf("\t ENTER THE NUMBER OF THE ROWS : ");
scanf("%d",&row);
for(i=1;i<=row;i++)
{
for(j=1;j<=i;j++)
{
printf("* ");
}
printf("\n");
}
for(i=row-1;i>=1;i--)
{
for(j=i;j>=1;j--)
{
printf("* ");
}
printf("\n");
}
}
click here for my youtube channel
Comments
Post a Comment