home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disk User Volume 1 #3
/
Commodore_Disk_User_Vol.1_3_1988_-.d64
/
divide
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Commodore BASIC
|
1988-01-01
|
183 b
|
11 lines
200 input"divisor ";a
201 ifa=0thenend
210 input"dividend";b
211 c=int(a/b):print"result:":printc"[157].";:a=10*(a-c*b)
220 c=int(a/b)
230 printchr$(c+48);
240 a=10*(a-c*b)
250 geta$:ifa$<>""then300
260 ifathen220
300 print:print:run