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 are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?
What happens if an exception is throws from an, object's constructor and object's destructor?
What is main function in c++ with example?
Is c the same as c++?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What is the best c++ book?
When does a 'this' pointer get created?
Explain the difference between class and struct in c++?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
To which numbering system can the binary number 1101100100111100 be easily converted to?
Can recursive program be written in C++?
Explain the pure virtual functions?