Professional Documents
Culture Documents
Sp 4
amplemmat F2a
Aim T ilk a saga
Code
SAMER
Dale:
dr hos MAX 5
Yaid inut ay-ponyGint)-
raid dalk Lpairihy (int),-
i d crtalk C
vaid check (Gotb;
vid ds diuplay paueuQ,
int pri-qe L1Ax )
int Pnot, ra
voiad main -
Lint o ch-
printf Cn1-Inscat ln2-1nelale In3-pisplay Int-EitL
ceak 0 ;
uhiuO
Liad \o Enkayou dhaice i
sont /d ch)_
Suith Cch)
cal
Cai
e i t Co),
dewlt
jintt n Lovadd choice"),
void eaeate C
Pront =reas =4-
i reaa 7eMAX-i)
priotf (*\o gueug oveaow no mas elenents an
ànseated
retuun
(Pront-=-i) &(reas -)
ront tt
pD-que Lras] = data
retusn
else
eheak daka),_
reas t
SAMRAT
w r e G y Faana
Date:
datay =pi-que i]
fai-reaa
reaagtjzij
1pn-queljl-piquelj
pri-qae L] -data
retn;-
pridus].daka
3
yoid dlete Ly-priory lGot-data)
int i
if(CPront==-) & (reas = -))
pntRC\n@eu empty no elemeat to deleki
e huun
3
fosioi<as tt
pá-qael p ue Li+
eas
SAVMRAT
Date:
| ea)E-i)
retun.
old Aikplaypqpeue O
(Pront-- - (au=-))
pint \o ouue s empty
rern
Pa C ; Pronts - rea
root t+)
aNat 7.d p r q e \Root]),_
Ouhoet
1-Tnwut
2- nelle
3-Displa
t-EuE
Enea u chaice 1
Enea value fo nsested i 20
SAMRAT
Dale:
Eoteavaue te b insetsd 8
Enlu eu choice
velue to insested i *
Enlea y e cheic: 3
SG 4 5 20
Enka aL chaice:
taBe value e e înie-ed: 30
Eoeye choice:3
s_C 4S 30 20
Eotea yos choice2
nlea tau to b dlebed: 45
En you choiC 3
Enlea au cheice:1S
Tovalid chaice
Eakhyaus claaice 4