Lab Recursion

  • Write a program to find out sum of each digit in the given number using recursion logic.
  • using the value 12345 as the input
  • For example, if the number is 12345, then the sum should be 1+2+3+4+5 = 15.
  • output "The sum of 12345 =15 using recursion"
  • Due Date : 6/20/2023 11:59 PM(Tuesday)

    How to submit lab?

  • Add your full name and email at the top of the file using a comment tag.
  • Compile and run your program, entering the required inputs.
  • Take a screenshot of the result.
  • Zip your project with the source code, then upload it on Blackboard.
  • Upload screenshot on Blackboard.
  • Note: Submit the assignment on Blackboard by the due date. Email and late submissions will not be accepted.