mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
15 lines
206 B
Nim
15 lines
206 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]
|