fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main()
  5. {
  6. long double pi = std::acos(static_cast<long double>(-1.0));
  7. std::cout << pi << "\n";
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
3.14159