September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
12
Task/Arithmetic-Integer/BASIC/arithmetic-integer-2.basic
Normal file
12
Task/Arithmetic-Integer/BASIC/arithmetic-integer-2.basic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
' Arthimetic/Integer
|
||||
DECLARE a%, b%
|
||||
INPUT "Enter integer A: ", a%
|
||||
INPUT "Enter integer B: ", b%
|
||||
PRINT
|
||||
|
||||
PRINT a%, " + ", b%, " is ", a% + b%
|
||||
PRINT a%, " - ", b%, " is ", a% - b%
|
||||
PRINT a%, " * ", b%, " is ", a% * b%
|
||||
PRINT a%, " / ", b%, " is ", a% / b%, ", trucation toward zero"
|
||||
PRINT "MOD(", a%, ", ", b%, ") is ", MOD(a%, b%), ", same sign as first operand"
|
||||
PRINT "POW(", a%, ", ", b%, ") is ", INT(POW(a%, b%))
|
||||
Loading…
Add table
Add a link
Reference in a new issue