Computer Science Homework Solutions
Problem
#181080

C++ reverse integer using recursion

I need a recursive function that accepts an integer and returns its reverse.

for example

int reverse( int n );
int main()
{
     int n;
     n = reverse (123) ;  // this returns 321

}

I can do this easily without recursion but I have to use recursion.
Thank you.

Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$3.99)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse