home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Net: Ultimate Internet Guide
/
WWLCD1.ISO
/
pc
/
java
/
eduhm01h
/
addition.t
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Text File
|
1996-08-14
|
176 b
|
13 lines
# This program adds two unary numbers separated by
# a 0 and prints the result one space to the right.
110111
8
0 1 0 >
0 0 1 1
1 1 1 >
1 - 2 <
2 1 3 -
3 - 4 <
4 1 4 <
4 - 5 >