编写C语言程序,打印以下图形: * * * * * * * * * * * * * * * * * * * * * * * * *
时间: 2023-09-04 22:08:13 浏览: 106
c语言打印图形
以下是打印图形的C语言程序:
```
#include <stdio.h>
int main() {
printf(" * * * * * * * * * * * * * * * * * * * * * * *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" *\n");
printf(" * * * * * * * * * * * * * * * * * * * * * * *\n");
return 0;
}
```
输出结果为:
```
* * * * * * * * * * * * * * * * * * * * * * * *
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* * * * * * * * * * * * * * * * * * * * * * * *
```
阅读全文