Help me find the error in this program

//to find sin using sin x=x-x^3/3!
#include<stdio.h>
#include<math.h>
float fact(int);
float calc(float,float );
int main()
{
float radian,result;
int degree;
printf(“enter the angle in degree\n”);
scanf("%d",&degree);
radian=degree
(3.14/180);
calc(radian,&result);
printf(“sin of %d is %f”,degree,result);
return 0;
}
float calc(float radian,float degree)
{
int count,n;
int sign;
sign=1;
count=1;
for(n=1;n<=5;n++)
{
degree=sign(pow(radian,count)/fact(count));
count=count+2;
sign=-1;
}
}
float fact(int num)
{
int n,sum=1;
for(n=1;n<=num;n++)
{
sum=sum
n;
}
return (sum);
}

1 Like