Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Arithmetic-Integer/BaCon/arithmetic-integer.bacon
Normal file
12
Task/Arithmetic-Integer/BaCon/arithmetic-integer.bacon
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