fork(3) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main( int argc, char ** argv )
  5. {
  6. unsigned long number[256*1024];
  7. int counter = 0;
  8. while( scanf("%lu",&number[counter]) != EOF )
  9. {
  10. counter++;
  11. }
  12.  
  13. for( counter--; counter >= 0; counter-- )
  14. printf("%.4f\n",sqrt(number[counter]));
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4368KB
stdin
 1427  0   

   876652098643267843 
5276538
stdout
2297.0716
65536.0000
0.0000
37.7757