Skip to content

Instantly share code, notes, and snippets.

@maksadbek
Created September 8, 2013 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maksadbek/6483798 to your computer and use it in GitHub Desktop.
Save maksadbek/6483798 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
vector<double> v;
double n;
while(cin>>n) v.push_back(n);
for(int i=v.size()-1; i>=0; i--)
cout<<setprecision(4)<<fixed<<sqrt(v[i])<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment