If Carly wants to add wind belts for the part of the Atlantic just
south of the equator, she should draw the arrows upward to the left. <span> At the South of the equator are trade winds which blow
wind from the northeast toward the equator. </span>
I would go with A) The Internet
I hope that turns out well for you. Good luck! (:
Answer:
public static void init(int[] arr, int n) {
if (n==0)
arr[0] = 0;
else {
arr[n-1] = n - 1;
init(arr, n-1);
}
}
Explanation:
Create a method called init that takes two parameters, an array and the number of elements in the array
When n reaches 0, set the first element to 0 (This is a base for our recursive method)
Otherwise, set the element in index i to i
Call the init inside the init, this is the recursion part, with same array but decrease the number of elements by 1 (We decrease the number of element by 1 in each time so that it goes through all the elements in the array)