
- Set val_times_100 to zero.
- Set val_times_10 to zero.
- Set val_times_1 to zero.
- While input value is larger than 99:
  - increment val_times_100
  - subtract 100 from input value
- While input value is larger than 9:
  - increment val_times_10
  - subtract 10 from input value
- Store remainder of input value in val_times_1
