#include <stdio.h>
#include <math.h>

main()
{
double x, r;

printf("   x          sin(x)          cos(x) tan(x)\n");
for ( x = 0.0 ; x <= 90 ; x = x + 15)
{
r = x * 3.141592 / 180.0;
printf("%6.2f  %12.5f  %12.5f  %12.5f\n", x, sin(r), cos(r), tan(r));
}
}

+ Recent posts