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

Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- &#9474; &#9474; &#9474; &#9474; &#9474; &#9474; ---

0 Answers  


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

0 Answers  


What can I use instead of namespace std?

0 Answers  


What is a friend function in c++?

2 Answers  


What is object file? How can you access object file?

0 Answers  


What is nested class in c++?

0 Answers  


What is lambda in c++?

0 Answers  


What is the meaning of string in c++?

0 Answers  


Is c++ double?

0 Answers  


What is a .lib file in c++?

0 Answers  


What are the advantages of using friend classes?

0 Answers  


What is the difference between a constructor and a destructor in C++?

1 Answers  


Categories