fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i;
  5. double x,y;
  6. x=0.001;
  7. y=0.0;
  8. for (i=0; i<1000;i++) y += x;
  9. printf("y=%f",y);
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
y=1.000000