Advertisement
a53

Disc

a53
Feb 23rd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #define PI 3.14159265
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double R,AC,LC;
  9. cin>>R;
  10. AC=PI*R*R;
  11. LC=2*PI*R;
  12. cout<<fixed<<setprecision(6)<<AC<<' '<<LC;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement