Hello,
I wrote this simple piece of code.
When trying to compile it, i get this error:Code:int main(void) int score [100]; score [0] = 5; score [1] = 3; for (i=2; 1<=100; i=i+1) score(i) = score[i-1] + score[i-2]; return(0);
I don't really understand what's wrong with line 8. To me, everything looks fine.Code:flash:~>gcc formula.c -o form formula.c: In function `main': formula.c:8: error: syntax error before "score" flash:~>pico +8 formula.c
Any ideas. Thanks