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

Types of storage and scope of each type

2 Answers   CA,


In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 Answers  


What is size of null class?

6 Answers   HP,


Write a program to find the Factorial of a number

0 Answers  


Which programming language is best to learn first?

0 Answers  






What are the types of container classes?

0 Answers  


Do class method definitions?

0 Answers  


What do you understand by a pure virtual member function?

0 Answers  


What is the use of seekg in c++?

0 Answers  


What is rvalue?

0 Answers  


Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?

1 Answers  


reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it

2 Answers  


Categories