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
What data encapsulation is in c++?
Differentiate between realloc() and free().
What do you mean by persistent and non persistent objects?
What is the type of this pointer in c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Can you overload the operator+ for short integers?
Is c++ a difficult language?
What are libraries in c++?
What are the implicit member functions of class?
What is setf in c++?
Is c++ high level programming language?
Name the debugging methods that are used to solve problems?
What is meaning of in c++?
How is objective c different from c++?
When does the c++ compiler create temporary variables?