sin (math function) in C.

 

01  #include <stdio.h>
02 #include <math.h>
03
04 int main()
05 {
06 double result, x = 0.5;
07
08 result = sin(x);
09 printf("The sin() of %lf is %lfn", x, result);
10
11 return 0;
12
13 }
 
 OUTPUT :

The sin() of 0.500000 is 0.479426

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *