'using a for loop, construct two 100 element arrays, x,y such that i of x stores the value sin(2*pi*i/100) and corresponding for y cos(''' ')print the values stored in elements of x,y as you calculate..'

cant see where im wrong?

Many thanks!!!!

insertCode:#include <stdio.h> #include <stlib.h> #define PI 3.142 int main() { //stating variable type and titles of the arrays int i, x[100], y[100]; for(i=0; i<=100; i++) x[i]=sin((2*PI*i)/100)); //in general for every element y[i]=cos((2*PI*i)/100)); printf("%.2f\t %.2f\n",x[i],y[i]); scanf("d\n"); exit(0); }