@ B3CK – There appears to be more issues than I expected. Just a few to things to pick
Code:
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
Printf function is defined within the header stdio.h and there must be included before it can used. Or the compiler wont know its definition.
Code:
int xtable[N];
int ytable[N];
Thats how you declare your array in C.
Code:
<datatype> {arrayname}[size];
Code:
for( i = 0; i < N; i++)
You cant decalre your variables just before the use. This is not C++. You need to declare the 'I' at the top before it can used.
Code:
printf("(%d, %d)\n", xtable[i], ytable[i]);
Since your printing an integer, your format specifier should be “%d” and not “%lf”.