Advertisement
mierotom

Valor de pi 2.0

May 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. #define pi acos(-1)
  6. #define FS fixed << setprecision(48)
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12.     cout << FS << "Valor de pi com precisao de 48 casas decimais: " << pi << endl;
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement