fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double num = sqrt(2);
  7. cout << fixed;
  8. cout.precision(52);
  9. cout << num << endl;
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/105206/101
Success #stdin #stdout 0s 4364KB
stdin
Standard input is empty
stdout
1.4142135623730951454746218587388284504413604736328125