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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is polymorphism useful?

569


Explain the differences between list x; & list x();.

608


What does flush do c++?

559


What is the difference between function overloading and operator overloading?

579


How can we check whether the contents of two structure variables are same or not?

591






What is an iterator class in c++?

601


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

619


How much maximum can you allocate in a single call to malloc()?

637


What are references in c++?

665


What is class invariant in c++?

750


What is anonymous object in c++?

632


What are put and get pointers?

585


What are the advantages of using pointers in a program?

681


Define namespace in c++?

652


Define basic type of variable used for a different condition in C++?

670