1
0
Fork 0
mirror of synced 2025-09-23 04:08:33 +00:00
ZoKrates/zokrates_cli/examples/pow.zok
2022-06-28 19:23:45 +02:00

17 lines
309 B
Text

def main() {
field mut 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 mut a = 5**2;
assert(a == 25);
a = a**2;
assert(a == 625);
a = 5**5;
assert(a == 3125);
return;
}