zettacode.files/arithmetic.integer/i.txt in zettacode-0.1.0 vs zettacode.files/arithmetic.integer/i.txt in zettacode-0.1.1
- old
+ new
@@ -1,11 +1,11 @@
-m
- $= ((' '))
- b $= (('\'))
+main
+ a $= integer(in(' ')); ignore
+ b $= integer(in('\n')); ignore
- ("Su:" , + b)
- ("Dffc:", - b)
- ("Puc:" , * b)
- ("Qu:" , b) u z
- ("Muu:" , % b) f
- ("E:" , ^ b)
+ print("Sum:" , a + b)
+ print("Difference:", a - b)
+ print("Product:" , a * b)
+ print("Quotient:" , a / b) // rounds towards zero
+ print("Modulus:" , a % b) // same sign as first operand
+ print("Exponent:" , a ^ b)
}