1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/book/for_scope.zok
2022-04-06 20:23:58 +02:00

8 lines
110 B
Text

def main() -> u32 {
u32 a = 0;
for u32 i in 0..5 {
a = a + i;
}
// return i <- not allowed
return a;
}