C语言--简单的爱心代码
发布时间:2023-02-05 01:30:15 400 相关标签:
新手都能敲出来的爱心代码
#include
#include
//#include
int main()
{
float x,y,a;
for(y = 1.5; y >- 1.5; y -= 0.1)
{
for(x =- 1.5; x < 1.5; x += 0.05)
{
a = x*x+y*y-1;
putchar(a*a*a-x*x*y*y*y<=0.0?'*':' ');
}
system("color 5E");
putchar('\n');
}
printf("祝在新的一年里\n");
printf("我们都心想事成,能够在2023成为心中的自己!\n");
return 0;
}

文章来源: https://blog.51cto.com/u_15943742/6023727
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报