Question: 2. Write a function that will create two new stacks from a stack called Oldstk of integer. Copies of the odd values will be placed
2. Write a function that will create two new stacks from a stack called Oldstk of integer. Copies of the odd values will be placed in a stack called Oddstk and copies of the even values will be placed in a stack called Evenstk. Oldstk should remain unchanged. All three stacks should be accessible by the main program o some other caller
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
