Question: Write a C program 3. Reads a real number, x, and outputs its sine (i.e., sinx ). You need to use math.h and the -lm
Write a C program

3. Reads a real number, x, and outputs its sine (i.e., sinx ). You need to use math.h and the -lm compile option. Sample program: \#include \#include int main ( \{ float x; printf("Enter a number = " );scanf("%f,&x); printf("x= %fexp(x)=%f fn", x,exp(x)); return 0; \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
