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:
Could you help me a little bit and tell me what should be the next step?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; }