answersLogoWhite

0

Value of Sin x in C programming?

Updated: 10/23/2022
User Avatar

Wiki User

11y ago

Best Answer

#include "stdio.h" #include "math.h" int main() { double result,degrees,radians; printf("Enter the no. of degrees : "); scanf("%lf",&degrees); radians = degrees*(M_PI/180); result = sin(radians); printf("%lf\n",radians); printf("The sin() of %lf is %lf\n", degrees, result); return 0; }

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Value of Sin x in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp