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
Why is polymorphism useful?
Explain the differences between list x; & list x();.
What does flush do c++?
What is the difference between function overloading and operator overloading?
How can we check whether the contents of two structure variables are same or not?
What is an iterator class in c++?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
How much maximum can you allocate in a single call to malloc()?
What are references in c++?
What is class invariant in c++?
What is anonymous object in c++?
What are put and get pointers?
What are the advantages of using pointers in a program?
Define namespace in c++?
Define basic type of variable used for a different condition in C++?