Professional Documents
Culture Documents
4122 Assignment 4
4122 Assignment 4
4122 Assignment 4
LALIT CAAUDHARY
4122
tse
ond
OBTECTIUE: Undeusond bakic nept o pHoRHammin q onguaqe
st mothemahal (alulahns in þuoquaming appuoach
Hyo Ale bu
ond quahun
wth the hdb o oxmul as
numbe
ond this iaample, we Ahould haue the
THEOPY: To unde
Pythn RAoqHammin mueph ith bauic
knouüledg e o) jloubing
i dte ttatment
ythom
Python whle alemenB loop.
stukment (&)
Hue Ahe puoguam euaduabet the tut zpueUAon ond uwill xecutt
h e ind.
uthon ouchau
expression
True
False
Booy
num >d:
numbo
pHint num" a o osifue
This adusays kainttd")
bAint
n u m : - 1
inum > 0.
Kumble
153 sa 125 - 153
We nctd v adulalt he aum (ubel o Ach dnt.So e nialte
the aum hb 31o and obBain each dyt by uing moduduu thtanr 7
Remaind u the numbeu Lohen dividtd hy 10 e s he kGA
dit he numbu
ALGAORITH
Read an inpuk numbe uAing input ).
Che uuhetheu he valuue untted an nRqe or not
Check inpul.num u qealu then o
Intialige a yaHiable named aum.num do
AXHrROWG.