Advertisement
Saleh127

Untitled

Apr 20th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define pi acos(-1)
  4. int main()
  5. {
  6. double a,b,c,w,r,ar,cir;
  7. int t;
  8. cin>>t;
  9. while(t--)
  10. {
  11. scanf("%lf",&a);
  12. w=(6*a)/10;
  13. r=(1*a)/5;
  14. ar=a*w;
  15. cir=(r*r)*pi;
  16. printf("%.2lf %.2lf\n",cir,ar-cir);
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement