Division by Zero
div(x, y) {
return x/y;
}
main() {
print(div(2, 1));
print(div(1, 0));
print(div(3, 1));
}
2.0
Infinity
3.0
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.0
Infinity
3.0