Write a program with a recursive function that shows the sum of its digits. For example, input =3426, output will be 3+4+2+6=15.
Write a program with a recursive function that shows the sum of its digits. For example, input =3426, output will be 3+4+2+6=15.
From the GTCL Assistant Engineer (CSE) 2022 – Written (BUET) exam, question 1 of 5.