home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / eduhm01h / addition.t next >
Encoding:
Text File  |  1996-08-14  |  176 b   |  13 lines

  1. # This program adds two unary numbers separated by
  2. # a 0 and prints the result one space to the right.
  3. 110111
  4. 8
  5. 0 1 0 >
  6. 0 0 1 1
  7. 1 1 1 >
  8. 1 - 2 <
  9. 2 1 3 -
  10. 3 - 4 <
  11. 4 1 4 <
  12. 4 - 5 >
  13.