sin

Overview :

The "sin" function is used for calcution of the sine value of a given input.

Syntax :
double sin(double x);
Description :
The "sin" function accepts 1 parameters
  • x -> The x is the number whose sine value is to be found

"sin" function return the sine value of a number.

Example :
#include <stdio.h>
 #include <math.h>
 #include<conio.h>

 int main()
 {
    double x,sin_value;
	clrscr();
	printf("\nEnter the number : ");
	scanf("%lf",&x);

    sin_value = sin(x);
    printf("The sin value is %lf\n", sin_value);
    getch();
    return 0;
}

Comments

comments powered by Disqus