Home | History | Annotate | Download | only in useful
      1 
      2 #include <stdio.h>
      3 
      4 int main ( void )
      5 {
      6   double d = 0.0;
      7   int i;
      8   for (i = 0; i < 30; i++) {
      9     printf("i = %d,  d = %f,  (int)d = %d\n", i, d, (int)d);
     10     d += 0.11;
     11   }
     12   return 0;
     13 }
     14