fork(6) download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4. #include <vector>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9. cout << setprecision(4);
  10. vector<double> v;
  11. double n;
  12. while (cin >> n)
  13. v.push_back(n);
  14. for (int i = v.size() - 1; i >= 0; i--)
  15. cout << sqrt(v[i]) << endl;
  16. }
Success #stdin #stdout 0s 4408KB
stdin
 1427  0   

   876652098643267843 
5276538
stdout
2297
9.363e+08
0
37.78