Write a program to get the value of sin (x) using a library
function , when x is given in degrees.



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

Post New Answer

More C++ General Interview Questions

What is algorithm in c++ programming?

0 Answers  


Can user-defined object be declared as static data member of another class?

0 Answers  


Explain Memory Allocation in C/C++ ?

0 Answers   Infosys,


What is a stack c++?

0 Answers  


Distinguish between new and malloc and delete and free().

0 Answers  






Explain about templates of C++.

0 Answers  


What is helper in c++?

0 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


What is recursion?

0 Answers  


Is c++ used anymore?

0 Answers  


Define token in c++.

0 Answers  


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


Categories