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 does asterisk mean in c++?
Do you know the problem with overriding functions?
What is the arrow operator in c++?
What is encapsulation in C++? Give an example.
Is c++ a pure oop language?
What is scope resolution operator in c++ with example?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What is a wchar_t in c++?
Why c++ is not a pure oop language?
Can create new c++ operators?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is the difference between a definition and a declaration?
State two differences between C and C++.
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What are the advantage of using register variables?