RosettaCodeData/Task/Arithmetic-Integer/Liberty-BASIC/arithmetic-integer.liberty

10 lines
496 B
Plaintext

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