fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. ios_base::sync_with_stdio(false);
  6. cin.tie(NULL);
  7. double h;
  8. cin >> h;
  9. double g = 9.8;
  10. double v = sqrt(2 * g * h);
  11. cout << fixed << setprecision(3) << v << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
0.000