Write a program to get the value of sin (x) using a library
function , when x is given in degrees.
Answer Posted / 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 View All Answers
Distinguish between new and malloc and delete and free().
Explain the difference between c++ and java.
What is the two main roles of operating system?
How many different levels of pointers are there?
Why is the function main() special?
Is main a class in c++?
What is prototype in c++ with example?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Are iterators pointers?
Can we make copy constructor private in c++?
What is namespace & why it is used in c++?
How we can differentiate between a pre and post increment operators during overloading?
Can I uninstall microsoft c++ redistributable?
How do you differentiate between overloading the prefix and postfix increments?
Is c++ the hardest language?