freebsd-dev/contrib/bc/Test/aryprm.b

17 lines
205 B
Brainfuck
Raw Normal View History

1998-04-29 21:53:01 +00:00
define p ( x[] ) {
auto i;
for (i=0; i<10; i++) x[i];
}
define m ( x[] ) {
auto i;
for (i=0; i<10; i++) x[i] *= 2;
}
scale = 20;
for (i=0; i<10; i++) a[i] = sqrt(i);
p(a[]);
m(a[]);
p(a[]);