#include <stdio.h>
#define SIZE 5
int stack[SIZE];
int top =-1;
int isEmpty() {
    return (top == -1);
    
}
int isfull() {
    return(top ==SIZE -1);
}
void push(int ele){
    if (isFull()){
        printf("stack overflow %d\n,ele");
    }
}
void pop(){
    if (isEmpty()) {
        printf("stack underflow\n");
        
    }else {
        printf("%d popped from stack\n",stack[top]);
        top--;
    }
}
void peek(){
    if(isEmpty()) {
        printf("stack is empty\n");
        
    }
}
void display(){
    if(isEmpty()){
        printf("stack is empty\n");
    }
    else{
        printf("stack element top to bottom:\n");
        for(int i=top;i>=0;i--){
            printf("%\n",stack[i]);
        }
    }
}
int main(){
    push(10);
    push(20);
    push(30);
    display();
    peek();
    pop();
    display();
    push(40);
    push(50);
    push(60);
    display();
    peek();
    if(isEmpty())
}