1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/for.zok
2020-11-12 15:32:41 +00:00

11 lines
178 B
Text

def bound(field x) -> u32:
return 41 + 1
def main(field a) -> field:
field x = 7
x = x + 1
for u32 i in 0..bound(x) do
// x = x + a
x = x + a
endfor
return x