
Given a non-negative int n, return the sum of its digits recursively (no loops). public static nt sumDigitsint n) if (nO return lastDigit’ int lastDigit int rest return lastDigit Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .