Sha256: be3d559e61a60b874055f1d0b01a937e4dc6bd44e29df993b5ae39486383c0ce
Contents?: true
Size: 717 Bytes
Versions: 10
Compression:
Stored size: 717 Bytes
Contents
The remainder returned by mod is non-negative. Furthermore, <code>div$(!a.!d)*!d+mod$(!a.!d):!a</code> for all integer <code>!a</code> and <code>!d</code>, <code>!d:~0</code>. ( enter = put$"Enter two integer numbers, separated by space:" & get':(~/#?k_~/#?m|quit:?k) | out $ "You must enter two integer numbers! Enter \"quit\" if you don't know how to do that." & !enter ) & !enter & !k:~quit & out$("You entered" !k and !m ". Now look:") & out$("Sum:" !k+!m) & out$("Difference:" !k+-1*!m) & out$("Product:" !k*!m) & out$("Integer division:" div$(!k.!m)) & out$("Remainder:" mod$(!k.!m)) & out$("Exponentiation:" !k^!m) & done;
Version data entries
10 entries across 7 versions & 1 rubygems