Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Explain about Garbage Collector?

0 Answers  


How would perform Pattern Matching in C++?

0 Answers   Genpact,


What is c++ hash?

0 Answers  


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

0 Answers  


diff between pointer and reference in c++?

1 Answers  


Where and why do I have to put the "template" and "typename" keywords?

0 Answers  


Difference between delete and free.

0 Answers  


How do you invoke a base member function from a derived class in which you’ve overridden that function?

0 Answers  


Can we specify variable field width in a scanf() format string? If possible how?

0 Answers  


Describe friend function & its advantages.

0 Answers   TCS,


What is operators in c++?

0 Answers  


What is a syntax in c++?

0 Answers  


Categories