Skip to main content

Ex Reverse Array

Description

Get from the user a bunch of numbers until user press 0, and after that, print them in reverse order.

Example

Input - 1
Input - 3
Input - 2
Input - 0
Output - [2, 3, 1]

More Challenging

  • If you created a new array to reverse the array. Then try to change the array itself.