correct the following code int sum(int n) { if (0 == n) { return 0; } else { n + sum(n-1); }}
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
correct the following code int sum(int n) { if (0 == n) { return 0; } else { n + sum(n-1); }}
correct the following code int sum(int n) { if (0 == n) { return 0; } else { n + sum(n-1); }}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!