Why won't this program run?
#include<stdio.h>
int main()
{
printf("%f\n", log(36.0));
return 0;
}
Why won't this program run?
#include<stdio.h>
int main()
{
printf("%f\n", log(36.0));
return 0;
}
You have to include
#include<math.h>
This is because math.h is a header file in the standard library of C programming language designed for basic mathematical operations.