cos (math function) in C.

 

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

The cosine() of 0.500000 is 0.877583

Related Post

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.