Two non-negative integers x and y are equal if either: – Both are 0, or – x-1 and y-1 are equal Write a bool-function named equals that recursively determines whether its two int parameters are equal and returns true if they are and false otherwise.

Two non-negative integers x and y are equal if either: – Both are 0, or – x-1 and y-1 are equal Write a bool-function named equals that recursively determines whether its two int parameters are equal and returns true if they are and false otherwise.

LANGUAGE: C++

CHALLENGE:

Two non-negative integers x and y are equal if either: – Both are 0, or – x-1 and y-1 are equal Write a bool-function named equals that recursively determines whether its two int parameters are equal and returns true if they are and false otherwise.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level