Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

tan - Calculates tangent in C

#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