//11.打印三角形
int count = 0;
printf("请输入你想打印的行数:");
scanf("%d", &count);
for(int i = 1;i <= count;i++)
{
for (int j = 0 ; j< count - i; j++) {
printf(" ");
}
for (int k = 0 ; k < 2 * i - 1; k++) {
printf("*");
}
printf("\n");
}
printf("请输入你想打印的行数:");
scanf("%d", &count);
for(int i = 1;i <= count;i++)
{
for (int j = 0 ; j< count - i; j++) {
printf(" ");
}
for (int k = 0 ; k < 2 * i - 1; k++) {
printf("*");
}
printf("\n");
}