Sha256: 3fd0dac5df089a3283346fcd4d2698e80f47762c0b9d3f7bba14465c08748f93
Contents?: true
Size: 326 Bytes
Versions: 10
Compression:
Stored size: 326 Bytes
Contents
There is no input, variables have to be set in code. Format is there only for output. set a = -17 set b = 4 echo "a+b = ".format(a+b,"%1d") echo "a-b = ".format(a-b,"%1d") echo "a*b = ".format(a*b,"%1d") echo "a DIV b = ".format(floor(a/b),"%1d") echo "a MOD b = ".format(a mod b,"%1d") echo "a^b = ".format(pow(a,b),"%1d")
Version data entries
10 entries across 7 versions & 1 rubygems