Write a program to get the value of sin (x) using a library
function , when x is given in degrees.
Answer / 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 |
What is an html tag?
Which programming language is best to learn first?
What is the role of C++ shorthand's?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What is virtual methods?
what is difference between internet and Internet?
12 Answers College School Exams Tests, Microsoft, MIT, TCS,
How a pointer differs from a reference?
What is the use of volatile keyword in c++? Give an example.
Write some differences between an external iterator and an internal iterator?
Show the declaration for a pointer to function returning long and taking an integer parameter.
Is c++ double?
Which programming language's unsatisfactory performance led to the discovery of c++?