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.

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

Distinguish between new and malloc and delete and free().

991


Explain the difference between c++ and java.

1074


What is the two main roles of operating system?

994


How many different levels of pointers are there?

1177


Why is the function main() special?

1056


Is main a class in c++?

970


What is prototype in c++ with example?

1083


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1486


Are iterators pointers?

1113


Can we make copy constructor private in c++?

1022


What is namespace & why it is used in c++?

1059


How we can differentiate between a pre and post increment operators during overloading?

1066


Can I uninstall microsoft c++ redistributable?

1062


How do you differentiate between overloading the prefix and postfix increments?

1054


Is c++ the hardest language?

950