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
What is basic if statement syntax?
Which is best c++ or java?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include Do inline functions improve performance? Is oops and c++ same? What is the difference between cin.read() and cin.getline()? What do you mean by translation unit? In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method? Array base access faster or pointer base access is faster? What are the different types of comments allowed in c++? What is the use of string in c++? Is c++ the most powerful language? What is near, far and huge pointers? How many bytes are occupied by them? How to declare a pointer to an array of integers? What are the differences between the function prototype and the function defi-nition?