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 is c++ prototype?
Describe delete operator?
Do class declarations end with a semicolon?
What is meant by a delegate?
Explain how an exception handler is defined and invoked in a Program.
What is a volatile variable in c++?
Can member functions be private?
Write a program to add three numbers in C++ utilizing classes.
What is microsoft c++ redistributable 2013?
How the programmer of a class should decide whether to declare member function or a friend function?
What do you mean by inheritance in c++?
What is conditions when using boolean operators?
Is vector a class in c++?
How a pointer differs from a reference?
What are abstract data types in c++?