You can also use it directly by adding another library in your code.
The library is math.h, I will demonstrate it by calculating area of a circle, so it would look like,
#include<stdio.h>
#include<math.h>
int main()
{
float r;
printf("Enter the value of radius of circle\n");
scanf("%f",&r);
printf("The area of the circle is %f\n",M_PI*r*r);
return 0;
}
Hope it helps
