Jump to content

Arithmetic/Integer: Difference between revisions

m
mNo edit summary
Line 1,961:
<lang i>
software {
var a = number(read(' '))
var b = number(read('\n'))
print("Sum: " , a + b)
print("Difference: " , a - b)
print("Product: " , a * b)
print("Quotient: " , a / b) // rounds towards zero
print("Modulus: " , a mod% b) // same sign as first operand
print("Exponent: " , a ^ b)
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.