langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
9
Task/Arithmetic-Integer/Run-BASIC/arithmetic-integer.run
Normal file
9
Task/Arithmetic-Integer/Run-BASIC/arithmetic-integer.run
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
input "1st integer: "; i1
|
||||
input "2nd integer: "; i2
|
||||
|
||||
print " Sum"; i1 + i2
|
||||
print " Diff"; i1 - i2
|
||||
print " Product"; i1 * i2
|
||||
if i2 <>0 then print " Quotent "; int( i1 / i2); else print "Cannot divide by zero."
|
||||
print "Remainder"; i1 MOD i2
|
||||
print "1st raised to power of 2nd"; i1 ^ i2
|
||||
Loading…
Add table
Add a link
Reference in a new issue