Sha256: a17b6aeb878afee3ce31819cdfc9b8b55354cce84c1c559fbe99433aaee495ec
Contents?: true
Size: 321 Bytes
Versions: 10
Compression:
Stored size: 321 Bytes
Contents
let _ = let a = read_int () and b = read_int () in Printf.printf "a + b = %d\n" (a + b); Printf.printf "a - b = %d\n" (a - b); Printf.printf "a * b = %d\n" (a * b); Printf.printf "a / b = %d\n" (a / b); (* truncates towards 0 *) Printf.printf "a mod b = %d\n" (a mod b) (* same sign as first operand *)
Version data entries
10 entries across 7 versions & 1 rubygems