mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
16 lines
203 B
Nim
16 lines
203 B
Nim
discard """
|
|
output: "61, 125"
|
|
"""
|
|
|
|
proc `^` (a, b: int): int =
|
|
result = 1
|
|
for i in 1..b: result = result * a
|
|
|
|
var m = (0, 5)
|
|
var n = (56, 3)
|
|
|
|
m = (n[0] + m[1], m[1] ^ n[1])
|
|
|
|
echo m[0], ", ", m[1]
|
|
|