To find the value of sin(x) when x is given in degrees we must know 2 things :
1. The library function sin(x) takes the argument in radians, so we have to 1st convert the degrees into radians.
2. The constant M_PI, which is included in “math.h” and has the value of the constant pi.
On knowing these things, the program becomes quite simple :