Which of the following methods can be used to find the sum of digits of a number?
Posted: Wed Jul 13, 2022 7:39 pm
a) Recursion
b) Iteration
c) Greedy algorithm
d) Both recursion and iteration
b) Iteration
c) Greedy algorithm
d) Both recursion and iteration