You are on page 1of 3

Pnpe Ho.

ats:

Hymstrong udber
Zm_amglronq number c chdern ia anomber in _Lohich
£tch_digit when mulliplhed byilielf n inumber imez
andfnally cdded tocethereulta the tahe number
or eample
31i2a3 diqit nber
cder ig 3
Lachdhil is autiplhed ky itelf a imez ano finally-
added kxgelerard1aa:t in_aiinal nanke.
3*3*
3 t11X1 k AL

343

lep Tist find out,hc many diaitz ae bere in number


CountO- Heve let Ua take q311
whileqD) 31110 31
Count=
31/10 =3
Coonttt COunt=9
3 33/0=D
Coont- 3

Here aout=3 ie order of humber -3

tep Mutipluing2ach digtn timez Cn-3) and add hem


Cnt=coLunt esult =0 31 7. to =
mui 1esull =

i Jemz qJ10, 231710 7


Lhulelcnl=a) mul T Y:33.
EGlt =_14343 =344
mul- mul em-
nt--,1 371o 3
m u3 3 *3=27
YLlt =esult mul;
c l ourt ealt =344 + 27
37

mul
Prga o
Dtax

esut 12: eqal t


lep3 check seher the calcvlatec
actualnomber ot
i(result =e nunlber
7nzhonq
umber Ynmber).
hnt Zd Liz an

hint %d ip not an nal1ony Mumber " hu oker);


Sulladn
PEg
Dets

Kogfom
tincludeketdio.h >
indude<conio.hz
int mainC)
3

int number, count-oeault=, mul=l cnt Yemy4-


clarc
Rint Entar a p2aitive intaer")
Rat 7,d" ~nabar)
number,
shileCq=o

cOuntt-

cnt =cout
nimber
while q!=o)

while Cot Iro)

mu mul *Jemj-

eault = Yezult +mul-


Ct =_ount

mul= i

eaut umbe,)
oitf Zd is an amatrony number "number),
ebe
fint CZd is_nctan arnadtrong number " number)-
vetum o;

You might also like