Question 51: Print the following figure Question 51: Print the following figure
#include"stdio.h"
void main()
{ int i,j; for(i=1;i<=4;i++) { for (j=1;j<=2 i-1;j++) printf(" "); printf("\n"); }
for(i=3;i>=1;i--)
{
for(j=1;j<=2*i-1;j++)
printf("*");
printf("\n");
}
}