Stack
Be sure to read instructions on how to handle assignments in the course outline before continuing.
Write a program that uses a stack to reverse a sequence of integers read in one per
line from the console, as shown in the following sample run:
Enter a list of integers, ending with 0:
> 10
> 20
> 30
> 40
> 0
Those integers in reverse order are:
40
30
20
10