#include <stdio.h>
#include <string.h>

char stack[100];
int top = -1;

void push(char x){
    stack[++top] = x;
}

char pop(){
    return stack[top--];
}

int main(){
    char word[] = "KOREA";

    for(int i = 0; i < 5; i++){
        push(word[i]);
    }

    for (int i = 0;i < 5;i++) {
        printf("%c", pop());
    }
    return 0;
}

Embed on website

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