Write a C++ program to perform 7 push operations of values: 10 20 30 40 50 60 70 in order and then pop three elements and print the remaining stack.
#include<iostream> #include<stack> using namespace std; int main(){stack mystack;mystack.push(10);mystack.push(20);mystack.push(30);mystack.push(40);mystack.push(50);mystack.push(60);mystack.push(70); // Stack becomes 10,20,30,40,50,60,70 // Stack becomes 1, 2,3 }