fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void reverse()
  5. {
  6. double x;
  7. if (cin >> x)
  8. {
  9. reverse();
  10. cout << x << "\n";
  11. }
  12. }
  13.  
  14. int main()
  15. {
  16. reverse();
  17. return 0;
  18. }
Success #stdin #stdout 0s 3464KB
stdin
0.568 0.925 -0.056
stdout
-0.056
0.925
0.568