输出一个爱心

#include<iostream>
#include<cmath>
#include<windows.h>
using namespace std;
int main()
{
for(float y=1.2;y>=-1;y-=0.065){
for(float x=-1.2;x<=1.2;x+=0.025){
if(pow((x*x+y*y-1),3)-x*x*y*y*y<=0.0) cout<<'*';
else cout<<' ';
}cout<<endl;
Sleep(100);
}
 } 
posted @ 2022-03-14 18:16  青城墨白  阅读(30)  评论(0)    收藏  举报