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 is c++ prototype?

716


Describe delete operator?

761


Do class declarations end with a semicolon?

722


What is meant by a delegate?

747


Explain how an exception handler is defined and invoked in a Program.

740






What is a volatile variable in c++?

809


Can member functions be private?

713


Write a program to add three numbers in C++ utilizing classes.

753


What is microsoft c++ redistributable 2013?

700


How the programmer of a class should decide whether to declare member function or a friend function?

812


What do you mean by inheritance in c++?

747


What is conditions when using boolean operators?

737


Is vector a class in c++?

723


How a pointer differs from a reference?

859


What are abstract data types in c++?

683