1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/compile_errors/div_by_zero.zok
2021-08-23 21:23:44 +02:00

3 lines
No EOL
123 B
Text

def main(field input) -> field:
field divisor = if [input, 0] != [input, 1] then 0 else 1 fi
return input / divisor