⑴ c语言的星号问题
#include<stdio.h>voidmain(){inti,j,m,n;scanf("%d",&n);if(n<5||n>21)printf("Inputerror!");else{for(i=n-1;i>=1-n;i--){m=i;if(m<0)m=-m;for(j=1;j<=m;j++)printf("");for(j=1;j<=(n-m)*2-1;j++)printf("*");printf(" ");}}}