I'm a beginner in C and can't figure out why the values for Sin_Value and Table are being calculated as so, because if i take them as number rather than an array they are calculated correctly. Any help is appreciated or any advice for future.
My Code so far:
Code:
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float Table[3][18], Sin_Value[18];
int Degrees = 0;
float radians;
int i,j;
float PI=3.14159;
for(j=0, Degrees=0;j<=17 && Degrees <= 180; ++j, Degrees= Degrees+10)
{
radians= Degrees*PI/180;
Sin_Value[j]=sin(radians);
Sin_Value[j]= Table[0][j];
printf("%.5f\n %.5f\n %.5f\n", radians, Sin_Value[j], Table[0][j]);
}
getch();
}