One Question of the Day 51

Question 51: Print the following figure Question 51: Print the following figure
Insert picture description here
#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");
} 

}

Guess you like

Origin blog.csdn.net/drake_gagaga/article/details/113961092