#include<iostream>

#include<stack>

using namespace std;

void function(){
    stack<string>colors;
    colors.push("yellow");
    colors.push("green");
    cout<<colors.top();
}

void function1(){
    int sum = 0;
    stack<int>stack;
    stack.push(27);
    stack.push(26);
    stack.push(25);
    while(!stack.empty()){
        sum = sum + stack.top();
        stack.pop();
        
    }
    cout<<sum;
    
}

int main(){
    stack<int>stack;
    stack.push(23);
    stack.push(24);
    stack.push(25);
    stack.push(29);

    while(!stack.empty()){
        cout<<stack.top();
        stack.pop();
    }
    function();
    function1();"\n";
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: