Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. /*
  7.  *
  8.  */
  9. int main(int argc, char** argv) {
  10. double a[262144];
  11. long long n=0;
  12. int i=0;
  13. //freopen("input.txt", "r",stdin);
  14. //freopen("output.txt", "w",stdout);
  15. for(i=0;!feof(stdin);i++)
  16. {
  17.     if(scanf("%I64d", &n) == -1) break;
  18.     long double q=n;
  19.     a[i]=(double)sqrtl(q);
  20. }
  21. i--;
  22. for(;i>-1;i--)
  23. {
  24.     printf("%.4f\n",a[i]);
  25. }
  26.  
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement