#include <stdio.h>

#include <math.h>    ////////////note you must compile with -lm option


int main()
{
int i ;
float f;
     for( i=1; i<40; i++)
     {
      f = log(i) ;
       printf("number = %d  log of i = %f  \n", i , f ) ;
      }
return 0 ;
}

Return to previous page.