Print the full Pyramid star in C:
Requirement: Visual studio code, MinGW and C/C++ extension installed in visual studio code
Output;
include put here less sign stdio.h put here greater sign
include put here less sign conio.h put here greater sign
int main()
{int i,j,k,n;
printf("enter the number of rows :");
scanf("%d",&n);
for(i=1;i put here less sign =n;i++)
{
for(j=i;j put here less sign n;j++)
{
printf(" ");
}
for(k=1;k put here less sign =2*i-1;k++)
{
printf("*");
}
printf("\n");
}
getch();
return 0;
}