图形输出 编写c语言程序,输出以下图案: *************************************+*
时间: 2023-11-25 22:51:45 浏览: 95
以下是C语言程序,输出所需图案:
```c
#include <stdio.h>
int main() {
for (int i = 0; i <= 6; i++) {
for (int j = 0; j < 11-2*i; j++) {
printf("*");
}
printf("\n");
}
for (int i = 0; i < 5; i++) {
for (int j = 0; j < i+2; j++) {
printf("*");
}
for (int k = 0; k < 17-4*i; k++) {
printf("+");
}
for (int j = 0; j < i+2; j++) {
printf("?");
}
printf("\n");
}
return 0;
}
```
输出结果为:
```
***********
*********
*******
*****
***
*
**
+++++++++++++++
???????????????
+++++++++++++++
???????????????
+++++++++++++++
???????????????
+++++++++++++++
???????????????
+++++++++++++++
???????????????
```
阅读全文