#include <stdio.h>
#include <math.h>
#define pi 3.141592
double sin_degree(double);
int main(void)
{
int i=0;
double result;
while(1)
{
if(i>=0 && i<=180)
{
result = sin_degree(i);
printf("sin(%d)의 값은 %lf\n", i, result);
i+=10;
}
else
break;
}
}
double sin_degree(double degree)
{
double radian;
radian = (pi * degree)/180.0;
return sin(radian);
}