Sha256: f44d5c1c5bb3865d60bc98cd1f1b111b1bfcf80816f19c9c9e4b528683514367
Contents?: true
Size: 288 Bytes
Versions: 10
Compression:
Stored size: 288 Bytes
Contents
main a $= integer(in(' ')); ignore b $= integer(in('\n')); ignore print("Sum:" , a + b) print("Difference:", a - b) print("Product:" , a * b) print("Quotient:" , a / b) // rounds towards zero print("Modulus:" , a % b) // same sign as first operand print("Exponent:" , a ^ b) }
Version data entries
10 entries across 7 versions & 1 rubygems