shamas195 0 Newbie Poster

if top=0
write:"stack is empty"
else
top__
push(stack,N,top,x)
if top=N
write:"stack is full"
else
settop:=top+1
set:stack top[x]

if top=0
write:"stack is empty"
else
top__
push(stack,N,top,x)
if top=N
write:"stack is full"
else
settop:=top+1
set:stack top[x]