Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #include<stack>
- #include<cmath>
- using namespace std;
- int main()
- {
- stack<double>stk;
- unsigned long long x;
- while(scanf("%llu",&x)!=EOF){
- stk.push(x);
- }
- while(!stk.empty()){
- cout<<fixed<<setprecision(4)<<sqrt(stk.top())<<endl;
- stk.pop();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement