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
Math,
4 months ago
Math,
9 months ago
Physics,
9 months ago
Math,
1 year ago
Social Sciences,
1 year ago