1
0
Fork 0
mirror of synced 2025-09-23 04:08:33 +00:00
ZoKrates/zokrates_cli/examples/arrays/cube.zok
2022-06-01 00:04:40 +02:00

13 lines
237 B
Text

def main(field[2][2][2] cube) -> field {
field res = 0;
for u32 i in 0..2 {
for u32 j in 0..2 {
for u32 k in 0..2 {
res = res + cube[i][j][k];
}
}
}
return res;
}