Advertisement
a53

Sfera

a53
Jun 29th, 2021
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include<iostream>
  2. #include <iomanip>
  3. #define PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. ios::sync_with_stdio(false);
  9. long long int r;
  10. cin>>r;
  11. long long int A,V;
  12. A=4*PI*r*r*100,V=4*PI*r*r*r/3*100;
  13. cout<<fixed<<setprecision(2)<<(double)A/100<<' '<<(double)V/100;
  14. return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement