Write a program to get the value of sin (x) using a library
function , when x is given in degrees.



Write a program to get the value of sin (x) using a library function , when x is given in degrees...

Answer / subrat

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float x,value;
printf("\n Enter a degree to get its Sin(x)
value=");
scanf("%f",&x);
clrscr();
value=sin(x);
printf("\n Value of Sin(x)=%f",value);
getch();
}

Is This Answer Correct ?    16 Yes 7 No

Post New Answer

More C++ General Interview Questions

What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?

2 Answers   Intel,


What happens if an exception is throws from an, object's constructor and object's destructor?

4 Answers   Wipro,


What is main function in c++ with example?

0 Answers  


Is c the same as c++?

0 Answers  


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

0 Answers  






What is the best c++ book?

0 Answers  


When does a 'this' pointer get created?

0 Answers  


Explain the difference between class and struct in c++?

0 Answers  


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

0 Answers  


To which numbering system can the binary number 1101100100111100 be easily converted to?

0 Answers  


Can recursive program be written in C++?

0 Answers  


Explain the pure virtual functions?

0 Answers  


Categories