Professional Documents
Culture Documents
RounoF2512001
find a , b,c
Use
2 a
|2a
Vy-acI
2a
Name- Ayosh Butala
Roll n umber - F23112055 Pnga No,
Date
tavarìant
which applied attereaoh jteraton
otheloop
9) Terminaingcondition
The Condito n under uhch the ite taton
process. +erminate
begin
condit'on True Jo op bo dy
sadse
End
Isdys
SIl (T
Date
Page.
Values Zero
J: S:0;
Name - ranalee Raut
Roll no- 36 PWGE
DATE
he en)uion fom n 2 is
tor n 2
Xondition
Block
f atatements
exiF
Termination ot l00 p:
fbere me numberg oye in ohich loop
can be teminated.
The sinnple conditian Por terminahng a oop
OccUms when iFig
known e in o dvante ho
many iderationg need to be made
T 3advance oe knoo n number of iterationg
then fo Joop in Pascal can terminate
uncondhon a) y aftern iterahond
tor i=1 to n do
begin
end
Asetond oay in aobich loop can terminate js
hen gome conditi nal erpreasion betome polx
Example:
while (n>0) nd (me10) do
begin
end
egelemenhs
conaiderio Ahe pmram af asrangingn
degCending onder
ag a f1] >4f]>.. >aCn]
pox thig Can ite
Aduantage, f algsihm
Algethm An algeithm sa nite get o intd
ptxoning Hncaeledge.
wquly cenc and cnly cepshd on he nput and
6Gencrallsed algcrithm
hener aiSation algerithna contitut the beildina br
Exanple -
An algenthn hi ch adcs2 numbos and gtot the
resclt in a third yaiab le
tep 3tart
oep2 Reaci the Arst numoex fin yañabl e 'al
Steps Read the gecon nunbe în vai able b'
Step4 Pexfox m the additen c both the num ber s ahd
g4ore Ahe resut in uai cblec
Step5 Pynt the uale s'c a erest a adaticn
Stsp Stop.
Shavo Ai) Khal odleor. classMAte
Rol). No g- 40. Date
Page
algoithm 9ehesalized 2
YOUYA
Rol no. - 14 Date
while uc i
pint ( This i an ingiik lep)
Qea) ahalag dilfeenl woys eprcint ing
algorihm.
Algozithm, An alqorithm ic preclie
steh by sep sel of inshuttionger salaing
computatiamal pcblem
tdyonto gt aqoifhm
Shep toise spresenta!n maty i eiy
Nlgorilhn lor even odd unction
Slep
Siep 2: Slart
Step 3 EnteY he numbet
Tf henumb!Y )s divisíble by 2 and
Step a
emaindey 2e10 pTint evem.
Ë he num bex is ncl
divisible by 2
and gemaindu i nolequal lazero,
piint odd
Step s End
(Btorty
Enteya nunbt
n /.2 = =
yes No
Patnt Print
Odl
(End )
Pege
Pseudo AqoviBhrm
Sfept npul no =
Stcp2h/.2 ==0 eYen
Stcpy: End
Namt:- Ashw any a Suryawanau
Roll No:- 46
Q 13)
What is meant by prog ram plant
)Creatinq. program is third stage or coding stag
)
gefore
) oa,atgn the
IH Is an as essertial as planning
pngram
Ohstructo
af bulding beforxacualy biding it
Ih simple words,Proqtan
process which takes you from ideas
planniHg
action and then to Cn evaluation
which tells you iF you Were cble to
accomplih your ideal Ta
In "mavin fia ldeau to acton, " you first
need ide anà then yau mt put them
ento lHon.
Ex. We have to plane a proqram We neee
flow chat oy páeudo code ox stnutur chad
Now, etbs cansidex pseudo code foi isplay
larqex numbr fiom wo humber.