Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <fstream>
- #include <algorithm>
- #include <math.h>
- using namespace std;
- int main() {
- double x;
- vector<double> tmp;
- while (cin >> x) {
- tmp.push_back(x);
- }
- reverse(tmp.begin(), tmp.end());
- cout.precision(4);
- for (auto x: tmp) {
- cout << sqrt(x) << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement