Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #define M_PI  3.14159265358979323846
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     float radius;
  10.     cin >> radius;
  11.     float per = 2 * M_PI * radius;
  12.     float area = M_PI * radius * radius;
  13.     printf("%.13f\n%.13f\n", area, per);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement