Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <iomanip>
- #define PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
- using namespace std;
- int main()
- {
- ios::sync_with_stdio(false);
- long long int r;
- cin>>r;
- long long int A,V;
- A=4*PI*r*r*100,V=4*PI*r*r*r/3*100;
- cout<<fixed<<setprecision(2)<<(double)A/100<<' '<<(double)V/100;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement