Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: recursion problem:: sum_of_array_elements and sum_of_digits #175

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Upendra48
Copy link
Contributor

From issue: #165

This pull request adds two recursive C++ programs that solve common problems related to summation.

  1. Sum of N Elements:

    • Implemented a recursive function to calculate the sum of n elements provided in an array. The code is well-commented to enhance understanding and clarity.
  2. Sum of Digits:

    • Developed a recursive function to find the sum of the digits of a given integer. This program also includes comments for better readability and to aid understanding of the recursive process.

And I will keep adding more problems, so don't close this issue as it not completed yet!

@Pradeepsingh61 Pradeepsingh61 merged commit 62c5064 into Pradeepsingh61:main Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants