Choose Category
#include <stdio.h> #include <math.h> #define PI 3.14159265 int main () { double input, result; input= 45.0; result = tan (param*PI/180); printf ("The tangent of %lf degrees is %lf.\n", input, result ); return 0; } // The tangent of 45.000000 degrees is 1.000000