Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- #define PI acos(-1)
- main()
- {
- long long int t,i;
- double l,w,r,a,b,c;
- scanf("%lld",&t);
- while(t--)
- {
- scanf("%lf",&l);
- w=(6*l)/10;
- r=(l/5);
- a=l*w;
- b=PI*r*r;
- c=a-b;
- printf("%.2lf %.2lf\n",b,c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment