RosettaCodeData/Task/Arithmetic-Integer/Liberty-BASIC/arithmetic-integer.basic
2023-07-01 13:44:08 -04:00

9 lines
496 B
Text

input "Enter the first integer: "; first
input "Enter the second integer: "; second
print "The sum is " ; first + second
print "The difference is " ; first -second
print "The product is " ; first *second
if second <>0 then print "The integer quotient is " ; int( first /second); " (rounds towards 0)" else print "Division by zero not allowed."
print "The remainder is " ; first MOD second; " (sign matches first operand)"
print "The first raised to the power of the second is " ; first ^second