Example (unfactored) algorithm to write out english numbers from 0 to 999,999.