modulus.abm (Not Module Specific)

1              REM Modulus Example

10           X=10 : Y=3

12           PRINT1 “Modulus = number1 MOD number2”

14           PRINT1 “number1=”,X

16           PRINT1 “number2=”,Y

20           M=X-(INT(X/Y)*Y)

22            PRINT1 “Modulus=”,M

×