#include<bits/stdc++.h>
using namespace std;
int main()
{
int t, j = 1;
double n;
cin >> t;
while(t--)
{
cin >> n;
double c = 3.141592653589793238 * (n*n);
double d = (2*n)*(2*n);
double ans = d - c;
cout << showpoint;
cout << fixed;
cout << setprecision(2);
cout << "Case " << j++ << ": " << ans+1e-9 << "\n";
}
return 0;
}
using namespace std;
int main()
{
int t, j = 1;
double n;
cin >> t;
while(t--)
{
cin >> n;
double c = 3.141592653589793238 * (n*n);
double d = (2*n)*(2*n);
double ans = d - c;
cout << showpoint;
cout << fixed;
cout << setprecision(2);
cout << "Case " << j++ << ": " << ans+1e-9 << "\n";
}
return 0;
}
Comments
Post a Comment