ACOS Function in C

The C ACOS Function is a Math Library Function. It calculates the Trigonometry Arc Cosine value for the user-specified expression or value. The syntax of the acos is

double acos(double number);

ACOS Function in C Example

The acos Function in the math library helps you to find the trigonometry Arc Cosine for the specified values. This program asks the user to enter his/her own number, and then it will find the arc cosine of the user entered one.

TIP: Please refer to the article in this Programming to calculate the COSINE value of a specified program expression.

#include <stdio.h>
#include <math.h>

int main()
{
  double acosValue, number;

  printf(" Please Enter the Floating Value between -1 to 1 :  ");
  scanf("%lf", &number);
  
  acosValue = acos(number);
  
  printf("\n The Arc Cosine value of %lf = %f ", number, acosValue);
  
  return 0;
}
ACOS Function in C programming Example 1