Answer on Question #49518 - Engineering, Other
how to draw a pyramid and its revered by using the function in C program
Solution.
#include <stdio.h>
#include <conio.h>
void main()
{
int i, n, j;
printf("\nPlease Give The Value of N: ");
scanf("%d",&n);
for(i=n; i>0; i--)
{
for(j=n-i; j>0; j--)
{
printf(" ");
}
for(j=2*i-1; j>0; j--)
{
printf(" *");
}
printf("\n");
}
getch();
}</conio.h></stdio.h>
https://www.assignmentsexpert.com/
Comments