logo CodeStepByStep logo

RemoveOddDigits

Language/Type: C# recursion

Write a recursive method named RemoveOddDigits that accepts an integer parameter n and that returns the integer formed by removing the odd digits from n. For example, the call of RemoveOddDigits(6342118) should return 6428.

Method: Write a C# method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.