Answer:
Explanation:
Let's do this in python. First we can set a placeholder variable to hold the first element of the array, then we can set that first element to the last element (5th) of that array. Then we set the last element of that array to the placeholder, which has value of the original first element of the array
placeholder = boroughs[0] # in python, 0 is the first element or arra
boroughs[0] = boroughs[-1] # -1 means the last element of the array
boroughs[-1] = placeholder
Data type? Such as int, float or string (called VARCHAR sometimes in a database)
Answer:
25 35
Explanation:
First if checks if num is greater than 25, it is so it prints 25 with a space after and adds 10 to num (num is now 35)
Then it checks if num is greater than 30, it is, so it prints 35 with a space after and adds 5 to num (num is now 40)
Lastly, it checks if num is greater than 45, it is not, so the program terminates with output: "25 35 " <em><u>(note the space at the end)</u></em>