Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int arraySumRecursive(int[] a, int i)
- {
- if(i<0)
- return 0;
- else
- return a[i]+ arraySumRecursive(a,i-1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement