You are on page 1of 5

APP

PYTHDNN
o nd th qhaatest 0} 3 numbess
a-nt [enput [* Ento thaeo nunbor.9"))
b ent 1nput t))
fnt [fnput()
e Ta>b and a>c):
PHt'nt (a" ?s qneatoa")
ole b>a añd b>c):
Pntb," acat0s")
paPnte" qneator

To pnent tho Sum e 1D numboso


useng WHlo loop
8um-0

WAlo 1<=l0):
Sum 9um ti
e-t1
pEnt 'SuD =, Suno)
LIST

L1o, 20, 30,40, so,60, to, 90,90,10 o


HO% en l:
paent )
C
STRUCTURED PROGRAMMIN PARADIM
Soquonttad mcthNe
Panad Em 4ho way wo wfto 4ho Poq7

Coroponets
Stauctogha ham > Gnaphfcal Ropacontalfon oy sAuctue po
Sub Ib-AOutEne Functeon| Phocoduse Combeno tRo code +to
Pmplement Ro taska
BlockSactfon et coda
tntendatepn Spactnq
Cont7ol Stnuctune >
Odd IEvon
a-en+ eoput (" Ents a no's ")
b nt (Enput
t)
a/==o):
phEnt,"% oven)

pent ta," edd)

Rovcs se
a-Pnt-teoput (" EDtos a no')) a-nput ("ENtr ano)
ohele a=o): bnt (o
PRoCE DURE PROGRAMmiN G PARADIG)
ChasactcYEs¥fcs Should wo the hunc+lone
OFunetfsn Concept
Shbane modulei
Py4Ron
Roue a bet a} code
Recstp
Stobal juncfea
ansjoam Onc ijoso +o anothes

ntax o juncefen_deenftfen
det Hunctfenncme laqument)
det
uncefen au Syotax
unctton-name [squncts)

Sum t two numbess


det add a, b)
Q-atb

add

Funceon Asqumonts hguments ase must


ORcauencd asqumen
@kaywohd squmenE9
Dejault asqumanis
Lostaba langti asquments
Reauned Angumon
da Sub 0,b)
C 0-b
pEnt c
Sub 15,
kyuoad Agumtts
Eq: dot add [a-t0, b= 0o, c- I):
d atb+c
Poentl
add
add o, Is,20
add e=t0, Q-0
Dohaunt Angumonts

lasPabie longth Asgument kuHuORd gumen


do yFun [**kuoangs ):
do y-Surn (tasq): k e y ,value tn koamgstn
ctuan Sum[age) Ent(s-7 S'.J
:
psent(oy- un[1,23,#))
key, Vaiu
phEntm- Qumla,3,+, Cb,49) to Funl»st- "wE LCDME",
Ed TO', aat
2 7 / 1 / 2 3

O 0gs aasnay It wfu hawe Re Collec-fena o4 valuos


Kuwarg s aniay (te WeU have bo+R koyeeand value
toeu bo 9+0%0d)

You might also like