#include<iostream.h>
#include<conio.h>
//Created By Krisna Anggara
#define n 10
void main()
{
int S[n];
int x,top;
top=-1;
while (top<=n-1)
{
cout<<"Inputkan isi stack : ";
cin>>x;
top=top+1;
S[top]=x;
}
cout<<"Isi stack : "<<endl;
while (top>=0)
{
x=S[top];
cout<<x<<" ";
top=top-1;
}
getch();
}