NetBSD/gnu/dist/bc/Test/array.b

15 lines
192 B
Brainfuck
Raw Normal View History

1999-01-16 03:21:25 +03:00
"This tests arrays!
"
define p(x,y) {
auto i;
for (i=x; i<y; i++) a[i];
}
for (i=0; i<10; i++) a[i] = i;
j = p(0,10);
for (i=1000; i<1030; i++) a[i] = i;
j = p(1000,1030);
j = p(0,10);