#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double x,y,a;
for (y=1.5f;y>-1.5f;y-=0.1f)
{
for (x=-1.5f;x<1.5f;x+=0.05f)
{
a=x*x+y*y-1;
if((a*a*a-x*x*y*y*y)<=0)
cout<<'*';
else
cout<<' ';
}
cout<<endl;
}
return 0;
}
元旦爱心C++
最新推荐文章于 2024-06-28 08:48:28 发布