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

- old
+ new

@@ -1,10 +1,10 @@ - = fo2(u("Numb 1: ") + 0) - b = f2(u("Nub 2: ") + 0) -c "\Su: " . ( + b) -c "Dffc: " . ( - b) -c "Puc: " . ( * b) -" T u f uc -c "Qu: " . ( b) -" T f u f c f -" f -c "R: " . ( % b) +let a = float2nr(input("Number 1: ") + 0) +let b = float2nr(input("Number 2: ") + 0) +echo "\nSum: " . (a + b) +echo "Difference: " . (a - b) +echo "Product: " . (a * b) +" The result of an integer division is truncated +echo "Quotient: " . (a / b) +" The sign of the result of the remainder operation matches the sign of +" the first operand +echo "Remainder: " . (a % b)