Logarithm value

 Program to find the value of Log(base 10).

#include<stdio.h>

#include<math.h>
int main()
{
double result,n;
    printf("enter the value ");
    scanf("%lf",&n);
    result=log10(n);
    printf("%lf",result);
    return 0;
}

OUTPUT :
enter the value 10
1.000000
enter the value 55
1.740363

for value of log(base e) 
result=log(n) ;


Comments