图形输出 编写c语言程序,输出以下图案: *************************************+*
时间: 2023-11-25 12:51:45 浏览: 115
以下是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;
}
```
输出结果为:
```
***********
*********
*******
*****
***
*
**
+++++++++++++++
???????????????
+++++++++++++++
???????????????
+++++++++++++++
???????????????
+++++++++++++++
???????????????
+++++++++++++++
???????????????
```
阅读全文
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)