Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- double pi= 2* acos(0.0);
- int main()
- {
- int t,c;
- cin>>t;
- for(c=1;c<=t;c++)
- {
- double r,l;
- cin>>r;
- l=r*2;
- double x=l*l-pi*r*r;
- cout<< "Case "<<c<<setprecision(2)<<fixed<< ": "<<x<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement