|
#include<iostream>
using namespace std;
int a,s;
float r,c;
int main()
{
r=10/2/3.14;
a=10/4;
s=a*a;
c=3.14*r*r;
if(a>c)
cout<<"正大";
else
cout<<"圆大";
return 0;
}
#include<iostream>
#include<math.h>
using namespace std;
float s,r,a,z,c;
int m;
int main()
{
int s=10;
r=pow(s/3.14,2);
c=3.14*2*r;
int m=10;
z=4*pow(m,2);
if(c>z)
cout<<"圆大";
else
cout<<"正大";
return 0;
}
|
|