home *** CD-ROM | disk | FTP | other *** search
- 1 rem ==================================
- 2 rem commodares problem #54-3 :
- 3 rem written remainder
- 4 rem solution by
- 5 rem dr. dave marquis
- 6 rem ==================================
- 10 input"[147]what is the number to be divided";a
- 20 input"what is the divisor";b
- 30 c=a/b
- 40 print""a"/"b" ="int(c)", remainder"int((c-int(c))*b+.1)
- 50 input"another division problem (y/n)";a$
- 60 if a$="y" then 10
-