1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/book/for_scope.zok
2020-09-16 17:57:12 +02:00

7 lines
No EOL
109 B
Text

def main() -> u32:
u32 a = 0
for u32 i in 0..5 do
a = a + i
endfor
// return i <- not allowed
return a