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 does the ios::ate argument do?

0 Answers  


What are the advantages of using a pointer?

0 Answers  


How can you say that a template is better than a base class?

0 Answers  


What is c++ best used for?

0 Answers  


When does a name clash occur?

1 Answers  






What do the keywords volatile and mean mutable?

0 Answers  


What do you mean by “this” pointer?

0 Answers  


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

4 Answers   Webyog,


What is a mutex and a critical section.Whats difference between them?How do each of them work?

4 Answers   CTS,


What are built-in functions? What is the syntax for the definition?

0 Answers  


What is the v-ptr?

0 Answers  


Categories