9.3 Code Practice: Question 2
Modify the code from the last problem by adding new lines of code. Your new program should swap the first and third elements of the nums array.
Print the nums array before and after the swap.
Sample Run
[14, 36, 31, -2, 11, -6]
[31, 36, 14, -2, 11, -6]
Answers
Answered by
0
Answer:
, 14, -2, 11, -6] is. the. answer
Similar questions