log()
function.
log(x)
x = input number
#include <stdio.h>
#include <math.h>
int main(void){
double x,ret;
x=3.54;
ret=log(x);
printf("log(%.2f)=%.2f", x,ret);
return 0;
}
The above code will give this output.
log(3.54)= 1.26