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


Please Help Members By Posting Answers For Below Questions

What data encapsulation is in c++?

589


Differentiate between realloc() and free().

588


What do you mean by persistent and non persistent objects?

728


What is the type of this pointer in c++?

626


How do you invoke a base member function from a derived class in which you’ve overridden that function?

579






Can you overload the operator+ for short integers?

592


Is c++ a difficult language?

568


What are libraries in c++?

601


What are the implicit member functions of class?

593


What is setf in c++?

572


Is c++ high level programming language?

669


Name the debugging methods that are used to solve problems?

574


What is meaning of in c++?

665


How is objective c different from c++?

784


When does the c++ compiler create temporary variables?

560