You are on page 1of 6

Dale:

Sp 4

amplemmat F2a
Aim T ilk a saga

A ant a speial ype o


elemsnt ii s a i akd
whic
eac
a red
suith apmorny alue and, elements
loasis heic pieib
hcir Tha
an- h
elemnk- Seved ParstAo
iah ici
Pelermsaks ith
accedin hur adas io h qee
L aved
Gaaalk h ee hs elemnt sel
Cansidacd da ignm h pienhu F eg
elsa with h bighut alu can

dud th bghsst paia eomntE


can aSema th elemant
in otheh couS
ith h louseit salue 4 hh highu pAiay
elemsnt, we Con aue stpaaianittA aacandlng.
nitdu

Code

tfine luee Kstdio h


#includi stdlb.h
#endudi con io h>

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

pint ln Enlka ale ta iosezde.d :")


Scanf"Yd4n_
insest-b-pmiasiyCo),-
oseak
Ca 2
print n Enk value de Alakd
scontza}n
delateyphoity (n),
baeak
Cal3
displaupuue ,
baak
SAMRAT
were u a P a
Date:

Cai
e i t Co),
dewlt
jintt n Lovadd choice"),

void eaeate C
Pront =reas =4-

void inuest- b-piaaitunt daka

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:

Noid check Cin data)


Lint i j
as =o eaa i4i+t)

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

i dadas - psape Li)

fosioi<as tt
pá-qael p ue Li+

eas

SAVMRAT
Date:
| ea)E-i)

retun.

pint i In Zd not Found io quue to dele te dada)

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

ntea lue o inneted: 4+S

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

You might also like