You are on page 1of 6

DATE

Psacti cal- o6 PAGE

ATM To check entexedno s Axamst6on ho o% ot

HEAT To ndestond this e meed loof elhe londhen


Sum
Amstng o is humb thad Cue ofka coch digit
aumhtx 9l to he num ber

abc

S3 3

#incl de isstuenm)
usins mame
5fote 5tJ

int Cube Lint hum)


ctn num num num

int meir ()
int numbtx
Cin ) numbt
int last=o, amtron o
int a humhe x
Cohile number o )
last nom be Y, lo;

a tmhfronq a smtson9 Co he Ca 34) S


num be numhex/io 3
atmstsong ==)
1Cut 6 , numh ex i asmtcong humbtr ; f
else
Cout & No, Tnumbev nat axn f song humbex " i

ION -n hs anumbex ven uher


and hen rts bxeaked digit bydhit Cuhed vaino
Cuhe Cube each digit 18 addes
o
Sum
checkeif oGinal num Le egvas to the

tobe ofdi_its ox not.


OUT PuT (o6)

153
eS numbex asmAtxon9 numbes
DATE-

Psuctal-20 PAGE

wnchon.
AIM VWAP to imple ment fsiond
he
Con ept
THEAyFaiead tun cho n 8not membea
tun chion oce88
to thch if is iend, This funchon declaKed in 10
cleAR with Kegiexd iend T4 must bede fined
ovfsile he Cla whih t 3 iend

iend 0t he cla8
tunchon Con acess 0n me mhe
t memherclas di rectty
wth fiend It lon acCe3g
T has no Cqlev object

Code
inclede io 84eam)
usn ne meslace 8td3

class Box_
Private
int lengh,
Pblic
Box t
leng ino: }-
frend int Psintlength (Box )

lengh t lo
length J
DATE

AGE

int man of
box
Coul Lengh of box ik22 find leng h C6)

A n 0;

a tunc Hon define as end font on then? tre t


:i i
dota of thd clukk Con he acce8e
OUTPUT (20)

length of box lo

45

You might also like