
values of sine
Hi guys. I need to calculate the values of sine function between 45 and 90 degrees (5 degrees step).
So far I have the following code:
Code:
#include <stdio.h>
#include <math.h>
void fprint();
float degree[10]={45,50,55,60,65,70,75,80,85,90};
int main ()
{
fprint();
return 0;
}
void fprint();
{
int i=0;
int deg=45;
}
while (i<90)
{
degree[i]=sin(deg);
deg=deg+5;
}
Could you help me a little bit and tell me what should be the next step? :)

I suggest going back to your earlier C lessons that are less complicated. I don't mean to be rude, but you should not be trying to do things like this when you don't understand functions, loops, or arrays.
Eventually when you're ready to try this, remember that sin() takes a value in radians, not degrees.

Could you point me out some good tutorial on arrays?