akosiraff

Download PEX5 CPP

Oct 20th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/pex5-cpp/
  3. Write a C++ program PEX5.cpp that reads a sequence of 20 integers, pushing all of
  4. the even integers onto one stack and all the odd integers onto the other. Output the
  5. contents of each stack by popping elements until its empty. Remember to use the STL
  6. .
  7. THIS IS THE OUTPUT:
  8. Run:
  9. Enter 20 integers:
  10. 5 13 25 16 2 4 5 17 457 88 1 9 26 55 100
  11. 75 36 8 10 35
  12. Even integers in reverse order:
  13. 10 8 36 100 26 88 4 2 16
  14. Odd integers in reverse order:
  15. 35 75 55 9 1 457 17 5 25 13 5
  16. Download: http://solutionzip.com/downloads/pex5-cpp/
Add Comment
Please, Sign In to add comment