Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

acos - Returns the value of cosine in C++

acos - Returns the value of cosine
Explanation: Acos is used to find the arccosine of a number (give it a cosine value and it will return the angle, in radians corresponding to that value). It must be passed an argument between -1 and 1.


Syntax:
acos(int value);


//ACOS() FUNCTION

#include<iostream.h>
#include<math.h>
#include<conio.h>
int main(void)
{
double val= -1.0;
clrscr();
do{
cout<<"\nArc cosine of " <<val<<" is "<<acos(val);
val += 0.1;
}
while(val <= 1.0);
getch();
return 0;

}