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 std :: endl?
Is it possible for a member function to delete the pointer, named this?
Do class declarations end with a semicolon?
Why namespace is used in c++?
What is the difference between Class and Structure?
40 Answers HP, IBM, Samsung, TCS,
What is DlgProc?
What is a class template?
What are the c++ access specifiers?
Is c++ map a hash table?
Describe the syntax of single inheritance in C++?
What can I use instead of namespace std?
Which bit wise operator is suitable for putting on a particular bit in a number?