Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. const double PI =  3.14159265358979323846;
  4. int main()
  5. {
  6.     double r;
  7.     cin >> r;
  8.     cout << PI * r * r << " " << PI * r * 2 << "\n";
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement