Log10 Function
It returns the logarithm of base 10 for the number .
Syntax:
float log10f(float num); double log10(double num); long double log10l(long double num);
Example:
#include <math.h> #include <stdio.h> int main() { double x = 1.0; do { printf("No : %f , Log10 : %f\n", x, log10(x)); x++; } while (x<12.0); return 0; }Back