Integer Division by Zero
div(x, y) {
return x ~/ y;
}
main() {
print(div(2, 1));
print(div(1, 0));
print(div(3, 1));
}
2
Breaking on exception: IntegerDivisionByZeroException
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
div(x, y) {
return x ~/ y;
}
main() {
print(div(2, 1));
print(div(1, 0));
print(div(3, 1));
}
2
Breaking on exception: IntegerDivisionByZeroException