Sha256: 2804b98599ab3030611fb9bcf53ecf9d89fc32f1800dc6025bae47cdf2d77c5e
Contents?: true
Size: 366 Bytes
Versions: 10
Compression:
Stored size: 366 Bytes
Contents
let a = float2nr(input("Number 1: ") + 0) let b = float2nr(input("Number 2: ") + 0) echo "\nSum: " . (a + b) echo "Difference: " . (a - b) echo "Product: " . (a * b) " The result of an integer division is truncated echo "Quotient: " . (a / b) " The sign of the result of the remainder operation matches the sign of " the first operand echo "Remainder: " . (a % b)
Version data entries
10 entries across 7 versions & 1 rubygems