Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
9
Task/Arithmetic-Integer/Rye/arithmetic-integer.rye
Normal file
9
Task/Arithmetic-Integer/Rye/arithmetic-integer.rye
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
a: input "Enter an integer: " |to-integer
|
||||
b: input "Enter another integer: " |to-integer
|
||||
|
||||
print "sum: " ++ a + b
|
||||
print "difference: " ++ a - b
|
||||
print "product: " ++ a * b
|
||||
print "quotient: " ++ a // b ; rounds toward zero
|
||||
print "remainder: " ++ a % b ; same sign as the first arg
|
||||
print "power: " ++ a .math/pow b
|
||||
Loading…
Add table
Add a link
Reference in a new issue