Advertisement
erfanul007

Light OJ 1022

Dec 29th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int t,i;
  6. double r,sqa,ca,area;
  7. scanf("%d",&t);
  8. for(i=1;i<=t;i++){
  9. scanf("%lf",&r);
  10. sqa=(r*2)*(r*2);
  11. ca=(2*acos(0.0))*r*r;
  12. area=sqa-ca;
  13. printf("Case %d: %.2lf\n",i,area);
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement