Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- int t,i;
- double r,sqa,ca,area;
- scanf("%d",&t);
- for(i=1;i<=t;i++){
- scanf("%lf",&r);
- sqa=(r*2)*(r*2);
- ca=(2*acos(0.0))*r*r;
- area=sqa-ca;
- printf("Case %d: %.2lf\n",i,area);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement