How to use log
#include <math.h> #include <stdio.h> int main(void) { double val = 1.0; do { printf("%f %f\n", val, log(val)); val++; } while (val<11.0); return 0; }