# Calculate Fibonacci numbers

printf( "Starting the fibonacci test...\n" );
i=1;
while ( i < 2 ) {
    i+=1;
    a=0; b=1;
    while ( b < 10000 ) {
        c = b;
        b = a+b;
        a = c;
    }
}
b?
if ( b != 10946 ) {
    printf( "...failed.\a\n" );
    exception();
}

printf( "...passed.\n" );


syntax highlighted by Code2HTML, v. 0.9.1