mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
18 lines
254 B
C
18 lines
254 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main (int argc, char** argv) {
|
||
|
int i, a[25];
|
||
|
a[0] = 1;
|
||
|
|
||
|
for (i=1; i < 24; i++) {
|
||
|
a[i-1] += i;
|
||
|
a[i] = 5;
|
||
|
a[i+1] = a[i] + a[i-1];
|
||
|
}
|
||
|
|
||
|
for (i=0; i < 25; i++)
|
||
|
printf("a[%d] = %d\n", i, a[i]);
|
||
|
|
||
|
return 0;
|
||
|
}
|