Why does moving the zero-divisor check into check(divisor int) bool improve the program?
check(divisor int) bool
It becomes a second program entry point.
It makes integer division by zero valid.
It automatically runs every check concurrently.
It encapsulates one reusable decision and keeps repeated calling code clearer.