Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
19
Task/Arithmetic-Integer/XBasic/arithmetic-integer.basic
Normal file
19
Task/Arithmetic-Integer/XBasic/arithmetic-integer.basic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
PROGRAM "IntegerArithmetic"
|
||||
VERSION "0.0000"
|
||||
|
||||
DECLARE FUNCTION Entry ()
|
||||
|
||||
FUNCTION Entry ()
|
||||
a$ = INLINE$("Enter integer A: ")
|
||||
a = SLONG(a$)
|
||||
b$ = INLINE$("Enter integer B: ")
|
||||
b = SLONG(b$)
|
||||
PRINT
|
||||
PRINT " Sum:"; a + b
|
||||
PRINT "Difference:"; a - b
|
||||
PRINT " Product:"; a * b
|
||||
PRINT " Quontent:"; a / b
|
||||
PRINT " Remainder:"; a MOD b
|
||||
PRINT " Power:"; a ** b
|
||||
END FUNCTION
|
||||
END PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue