Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Write a recursive function called sumDigits to return the sum of all of the digits in a given integer value. Use a helper function if necessary.
- 2. Write a recursive function called countVowels that returns the number of vowels in a given String. (You can assume that the letter "y" is not a vowel.) Use a helper function if necessary.
Advertisement
Advertisement