Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static double RecursiveAverage(double[] arr, int iteration, double sum)
- {
- if (iteration == arr.Length)
- return sum/arr.Length;
- sum += arr[iteration];
- return RecursiveAverage(arr, iteration + 1, sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement