fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. #include<stdlib.h>
  4. #define SIZE 128*1024
  5. long long int num[SIZE];
  6. int main()
  7. {
  8. int i,n=0;
  9. long long int N;
  10. while(scanf("%lld",&N)!=EOF)
  11. {
  12. num[n]=N;
  13. n++;
  14. }
  15.  
  16. for(i=n-1;i>=0;i--){
  17.  
  18. printf("%0.4lf\n",(double)sqrt(num[i]));
  19. }
  20. return 0;
  21. }
Success #stdin #stdout 0s 16264KB
stdin
Standard input is empty
stdout
Standard output is empty