#include<stdio.h> main() { int i,j; for (i=1;i<=5;++i) { for (j=1;j<=5-i;++j) printf(" "); for (j=1;j<=2*i-1;++j) {printf("*"); } printf("%d",2*i-1); printf("\n"); } }
[此贴子已经被作者于2019-11-5 22:11编辑过]