|
#include<iostream>
using namespace std;
float c,r,a,x,y;
int main()
{
c=10;
r=c/3.14/2;
a=c/4.0;
x=3.14*r*r;
y=a*a;
if(x>y) cout<<"yuan";
else cout<<"zheng";
return 0;
}
#include<iostream>
#include<cmath>
using namespace std;
float s,r,a,x,y;
int main()
{
s=10.0;
r=sqrt(s/3.14);
a=sqrt(s);
x=3.14*2*r;
y=a*4;
if(x>y) cout<<"yuan";
else cout<<"zheng";
return 0;
} |
|