Calculate logarithm base 10: how to use log10 : Log « Math « C / ANSI-C






Calculate logarithm base 10: how to use log10



#include <stdio.h>
#include <math.h>

int main ()
{
  double param, result;

  param = 100.0;

  result = log10 (param);

  printf ("log10(%lf) = %lf\n", param, result );

  return 0;
}



           
       








Related examples in the same category

1.How to use logHow to use log
2.How to use log10How to use log10
3.Calculate natural log: how to use log