int main(int argc, char *argv[])
{
int value,upper_limit;
float x;
printf("enter the value of angle"); scanf("%d",&value);
printf("enter the upper limit"); scanf("%d",&upper_limit);
printf("The valuse of angle is %.3f",sin(value,upper_limit));// I get the report here
system("PAUSE");
return 0;
}
This is sin function
float sin(int x, int y)
{
int i;
double a=0,radyan=0.0;
float value=0;
radian=3.14*x/180;
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int value,upper_limit;
float x;
printf("enter the value of angle"); scanf("%d",&value);
printf("enter the upper limit"); scanf("%d",&upper_limit);
printf("The valuse of angle is %.3f",sin(value,upper_limit));// I get the report here
system("PAUSE");
return 0;
}
Put a function prototype for your sin function above your main.
Call your function sine - sin is already used by math.h, which might get included by one of your other headers.