用c语言写一个母亲节快乐的爱心代码
时间: 2023-10-14 14:17:09 浏览: 191
以下是一个简单的母亲节爱心代码,使用C语言编写:
```c
#include <stdio.h>
int main() {
printf("Happy Mother's Day!\n\n");
printf(" ♥♥♥♥♥♥♥♥♥\n");
printf(" ♥♥♥♥♥♥♥♥♥♥♥♥♥\n");
printf(" ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥\n");
printf(" ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥\n");
printf(" ♥♥♥♥♥♥♥♥♥♥♥♥♥\n");
printf(" ♥♥♥♥♥♥♥♥♥\n");
printf(" ♥♥♥♥♥♥\n");
printf(" ♥♥♥\n");
printf(" ♥\n");
return 0;
}
```
运行程序,会在控制台输出一个爱心,类似下面的样子:
```
Happy Mother's Day!
♥♥♥♥♥♥♥♥♥
♥♥♥♥♥♥♥♥♥♥♥♥♥
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
♥♥♥♥♥♥♥♥♥♥♥♥♥
♥♥♥♥♥♥♥♥♥
♥♥♥♥♥♥
♥♥♥
♥
```
祝母亲节快乐!
阅读全文