Advertisement
DEAD_MAN01

reverse root

Jul 26th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. double v[100*1024];
  5.  
  6. int main()
  7. {
  8. double n;
  9. long long int i=0,j;
  10. while(scanf("%lf",&n)!=EOF)
  11. {
  12. v[i]=sqrt(n);
  13. //printf("%.4lf\n",v[i]);
  14. i++;
  15. }
  16. for(j=i-1;j>=0;j--)
  17. printf("%.4lf\n",v[j]);
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement