home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
601-625
/
apd620
/
amos_pro_only
/
division_using_mod.amos
/
division_using_mod.amosSourceCode
Wrap
AMOS Source Code
|
1986-08-03
|
395b
|
29 lines
Rem Division Using Only Integers And MOD.
' note that numbers entered by user must
' still be integer.
Input "Enter first number: ";A
Input "Enter second number: ";B
Cls
S$=""
S$=Str$(A/B)-Chr$(32)
S$=S$+"."
V=(A mod B)*10
S$=S$+Str$(V/B)-Chr$(32)
For N=1 To 3 : Rem change this to select no. of decimal places
V=(V mod B)*10
S$=S$+Str$(V/B)-Chr$(32)
Next
Print S$