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