Sha256: c7c8d31579b303350efc10d92033079b62147ac26acc741a9774dc430cef5379
Contents?: true
Size: 364 Bytes
Versions: 10
Compression:
Stored size: 364 Bytes
Contents
include get.e integer a,b a = floor(prompt_number("a = ",{})) b = floor(prompt_number("b = ",{})) printf(1,"a + b = %d\n", a+b) printf(1,"a - b = %d\n", a-b) printf(1,"a * b = %d\n", a*b) printf(1,"a / b = %g\n", a/b) -- does not truncate printf(1,"remainder(a,b) = %d\n", remainder(a,b)) -- same sign as first operand printf(1,"power(a,b) = %g\n", power(a,b))
Version data entries
10 entries across 7 versions & 1 rubygems