Advertisement
MatveyL

123

Nov 23rd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <fstream>
  4. #include <algorithm>
  5. #include <math.h>
  6.  
  7. using namespace std;
  8.  
  9. int main() {
  10. double x;
  11. vector<double> tmp;
  12. while (cin >> x) {
  13. tmp.push_back(x);
  14. }
  15. reverse(tmp.begin(), tmp.end());
  16. cout.precision(4);
  17. for (auto x: tmp) {
  18. cout << sqrt(x) << "\n";
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement