home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 2
/
BUGCD1997_01.iso
/
aplikac
/
turing
/
turing.exe
/
addition.t
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-05-22
|
188 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 >