Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define pi acos(-1)
- int main()
- {
- double a,b,c,w,r,ar,cir;
- int t;
- cin>>t;
- while(t--)
- {
- scanf("%lf",&a);
- w=(6*a)/10;
- r=(1*a)/5;
- ar=a*w;
- cir=(r*r)*pi;
- printf("%.2lf %.2lf\n",cir,ar-cir);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement