Don’t define your own (broken) sin
function – use the one that’s already in the math library:
printf("The sine of 1 radian is %.3f.\n", sin(1.0));
7
solved Using the math library to display the sine of 1 radian rounded to three decimal points in C [closed]