fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. double num;
  7.  
  8. while(scanf("%lf", &num) && !feof(stdin) && !ferror(stdin))
  9. {
  10. printf("%lf\n", num);
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 2012KB
stdin
10.0
1.2
c
12.6
stdout
10.000000
1.200000