How to use log10 : Log « Math « C / ANSI-C






How to use log10

How to use log10
#include <math.h>
#include <stdio.h>

int main(void)
{
  double val = 1.0;

  do {
    printf("%f %f\n", val, log10(val));
    val++;
  } while (val<11.0);

  return 0;
}

           
       








Related examples in the same category

1.How to use logHow to use log
2.Calculate natural log: how to use log
3. Calculate logarithm base 10: how to use log10