1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/pow.zok

16 lines
259 B
Text

def main() -> ():
field x = 2**4
assert(x == 16)
x = x**2
assert(x == 256)
field y = 3**3
assert(y == 27)
field z = y**2
assert(z == 729)
field a = 5**2
assert(a == 25)
a = a**2
assert(a == 625)
a = 5**5
assert(a == 3125)
return