Int Disploy Cint Aee, Int Ilength) : Eefen TH

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

DATE

SSignm en t lo J

ACCept N Numbe&S feom Use& eefen


8eften th
a6gest Humbe
HInclude<stcio h
include <Stdli bh

int Disploy Cint Aee[],intilength )


int Icnt=0;_
nt imax=0
08 CInt=o, jcnt<i length j icnt tt)
iF (imax<hE8 [icn t])
ImaX AEE[icntJ

8efusn imaxj

int mainC)

ntSITe:0;
i n t icnt =o
fot xph6 NULL;
int8et=0;

peintf Enteg The tumbes )


SConfc J id
ISiZE)
fetnt PlE=(tnf x) malloc Ctnt i5 ize
Size ofihJ
fo&CICnt= 0j1 C0t<j3tej l cotH)_
SCan fC4 pt8CicntJ);
ieet DiSpla [pt 8SIe)
PEinf Ihe ma Numbeg S 1diee)
Ee tuen0

e)ACCept Ndumbeg FEom USee 8etggn


The Lasges Numbe

indludeKsjoiO A)
includessiolib A

intSmalleSF Cinf AEEC) 1n length )

int 1(nt=0 Inf rmin Oj

t<ilength; lent t1)


Toeicnt-0, fcn

I fCimin>Aee [icntJ)
imin 6E CientI}

@efe min
_int main c/

intc n t e
(nt1SI7eO TnF
int ieetsd
PEinfCFoFes h e Numb e
IS(7e)
ScanfC ( 1 t d '

Me PE m i n t ) malloC Cer
stnt S S1ze of (
CnEtt)
foe CICoF=o; jcntkilength)
PEAt Scanfcl7e, Pte CicoFT

etsmalleS Pte, IS1ze

PeIntfCli The Smal lesf o S . o ' , TE

eefufn O

You might also like