等腰三角形 t3.c
#include
main() {
int i,j;
i=1;
while (i<=10) {
j=1;
while (j<=10-i) {
printf(" ");
j++;
}
j=1;
while (j<=(2*i-1)) {
printf("*");
j++;
}
printf("\n");
i++;
}
}