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

Which software is best for programming?

0 Answers  


Is it possible for a member function to delete the pointer, named this?

0 Answers  


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

0 Answers  


What is class and structure in c++?

0 Answers  


What are c++ manipulators?

0 Answers  






Can we use struct in c++?

0 Answers  


Explain the difference between realloc() and free() in c++?

0 Answers  


Explain static and dynamic memory allocation with an example each.

0 Answers  


What and all can a compiler provides by default?

3 Answers   Accenture, HP,


Name some pure object oriented languages?

1 Answers  


Write a program to find the Fibonacci series recursively.

0 Answers   Huawei,


What is c++ hiding?

0 Answers  


Categories