Sha256: fb73fc1e84c8b50a7e54df51e39fb909831b6a54a1b340499c2395544a7b9f3b
Contents?: true
Size: 402 Bytes
Versions: 10
Compression:
Stored size: 402 Bytes
Contents
input "enter a number ?", a input "enter another number ?", b print "addition " + a + " + " + b + " = " + (a + b) print "subtraction " + a + " - " + b + " = " + (a - b) print "multiplication " + a + " * " + b + " = " + (a * b) print "integer division " + a + " \ " + b + " = " + (a \ b) print "remainder or modulo " + a + " % " + b + " = " + (a % b) print "power " + a + " ^ " + b + " = " + (a ^ b)
Version data entries
10 entries across 7 versions & 1 rubygems