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

What does asterisk mean in c++?

1163


Do you know the problem with overriding functions?

1170


What is the arrow operator in c++?

1070


What is encapsulation in C++? Give an example.

1152


Is c++ a pure oop language?

1122


What is scope resolution operator in c++ with example?

1086


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2545


What is a wchar_t in c++?

1211


Why c++ is not a pure oop language?

1092


Can create new c++ operators?

1066


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1078


What is the difference between a definition and a declaration?

1113


State two differences between C and C++.

1247


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1469


What are the advantage of using register variables?

1208