Debug exercise · Hard · Ladder · 15 min · Pro
Divide by zero
A rate calculation faults the program when the part count is 0. Guard the divide so the program keeps running.
This exercise is part of Pro. Start the free trial to open it.
How it is checked.
- Find the divide that faults
- Skip the divide when the count is 0
- The program runs without a fault
Part of Compare and math. All practice exercises.