zettacode.files/arithmetic.integer/euphoria.txt in zettacode-0.1.0 vs zettacode.files/arithmetic.integer/euphoria.txt in zettacode-0.1.1

- old
+ new

@@ -1,13 +1,13 @@ -cud . +include get.e - ,b +integer a,b - = f(_ub(" = ",{})) -b = f(_ub("b = ",{})) +a = floor(prompt_number("a = ",{})) +b = floor(prompt_number("b = ",{})) -f(1," + b = %\", +b) -f(1," - b = %\", -b) -f(1," * b = %\", *b) -f(1," b = %\", b) -- uc -f(1,"(,b) = %\", (,b)) -- f -f(1,"(,b) = %\", (,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))