Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Arithmetic-Integer/I/arithmetic-integer.i
Normal file
11
Task/Arithmetic-Integer/I/arithmetic-integer.i
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
main
|
||||
a $= integer(in(' ')); ignore
|
||||
b $= integer(in('\n')); ignore
|
||||
|
||||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue