01: #include <stdio.h>
02: #include <math.h>
03: 
04: int main(void){
05:   int deg;
06:   double rad;
07: 
08:   printf("---------------------------------------------------------\n");
09:   printf("rad\tsin\t\tcos\t\ttan\n");
10:   printf("=========================================================\n");
11: 
12:   for(deg=0; deg<=360; deg++){
13:     rad = (double)deg/180*M_PI;
14:     printf("%d\t%f\t%f\t%f\n", deg, sin(rad), cos(rad), tan(rad));
15:   }
16: 
17:   printf("---------------------------------------------------------\n");
18: 
19:   return 0;
20: }


no counter