fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. double result = 768*sqrt(2-sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+sqrt(2+1))))))))));
  10.  
  11. setprecision(15);
  12. cout << result <<endl;
  13. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
1.5708