logarithmus c math.h

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

int main() {
    double x = 10.0;

    // Calculate the natural logarithm (base e) of x
    double result = log(x);

    // Print the result
    printf("The natural logarithm of %.2lf is %.2lf\n", x, result);

    return 0;
}