Arithmetic/Integer: Difference between revisions
no edit summary
(→{{header|Lasso}}: add lasso integer arithmetic examples) |
No edit summary |
||
Line 2,736:
End Sub
End Module</lang>
=={{header|Wart}}==
<lang python>prn "arith"
a <- (read)
b <- (read)
prn "sum: " a+b
prn "difference: " a-b
prn "product: " a*b
prn "quotient: " a/b
prn "integer quotient: " (int a/b)
prn "remainder: " a%b
prn "exponent: " a^b</lang>
=={{header|XPL0}}==
|