SHARE
TWEET

Untitled

a guest Sep 20th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*###Begin banned keyword - each of the following line if appear in code will raise error. regex supported
  2. define
  3. include
  4. using
  5. ;
  6. ###End banned keyword*/
  7. #include <iostream>
  8. #include <iomanip>
  9. #include <limits>
  10. #include <cmath>
  11.  
  12. using namespace std;
  13.  
  14.  
  15.  
  16. int main()
  17. {
  18.     cin.tie(NULL);
  19.     std::ios_base::sync_with_stdio(false);
  20.  
  21.     double x;
  22.  
  23.     cin >> x;
  24.     cout << setprecision(16) << (atan(1)/4)*x*2 << "\n"<< (atan(1) / 4)*x*x
  25.         << endl;
  26.     return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top