Question: Write a C++ code using C++ STL to a. Scan 10 elements and store them in a stack b. print the factorial of each element
Write a C++ code using C++ STL to a. Scan 10 elements and store them in a stack b. print the factorial of each element in stack (without deleting elements in stack) c. delete the odd elements in stack and print the sum of the rest elements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
