PHP:
Begin convert_to_binary ( DecNum )
index = 1;
REPEAT
Remainder = DecNum MOD 2;
DecNum = DecNum / 2
binary_index(index) = Remainder
increment index
UNTIL DecNum <= 0
Counter = index - 1
While counter > = 1
PRINT binary_array(counter)
counter = counter + 1 //Shouldn't that be - 1?
ENDWHILE
End SUBPROGRAM
Thanks