Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Arithmetic-Integer/True-BASIC/arithmetic-integer.basic
Normal file
15
Task/Arithmetic-Integer/True-BASIC/arithmetic-integer.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
! RosettaCode: Integer Arithmetic
|
||||
! True BASIC v6.007
|
||||
! Translated from BaCon example.
|
||||
PROGRAM Integer_Arithmetic
|
||||
INPUT PROMPT "Enter integer A: ": a
|
||||
INPUT PROMPT "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 ";INT(a/b);
|
||||
PRINT "MOD(";a;", ";b;") is "; MOD(a,b)
|
||||
PRINT "POW(";a;", ";b;") is ";INT(a^b)
|
||||
GET KEY done
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue