Control Flow and Functions27 of 62
Complete divide(a, b int) (int, error): if b is 0, return 0 and errors.New("division by zero"); otherwise return a / b and nil. main already handles printing the error or the result.
Sign in to try this exercise.