Professional Documents
Culture Documents
Durgesh Pandurang Dhore Date 05 April 2021
Durgesh Pandurang Dhore Date 05 April 2021
Durgesh Pandurang Dhore Date 05 April 2021
CollegeIofode:- 20004026
DATE
O O O ® = Dete 05Le420-
Simple-if Statements
ISe Statements
hested f else Statement
elSe i f ladden LonSaded Statm ent)
Switdh Case Statemn.ent
Ezamples-
gotOStatement
bneak Statement
Continue SAatement-
netnn StatemeH-
B Loopinq Statements
me StatemeniSthat help us_to exeute
Sct of_Statemenis DePeatedly ODe(alled
as Lnoping.State0enis n cLoap Conbne
S+atanents- me USed to perDfonm_Loopin4
opnatonsuntil the given_Codition-
Lomes_ 0ut aftheloop
tnueConm ol
Statemnents on ce ondiHoD_bebecomestalse
lontmolStatments_
The types 0f Loop
in C ane_
PAGE
Colege I0-2ooo4026
Date 05/04/2021 DATE
MO®OOO=
altuhiie Statement
do uhile Statement
f o n _State
Synta
1f (COnditlonL
Statemen 1-
Algonitbm
Sttp 1 StaDt.
Step mput A, B,
Sttp 31=If Az2Bqnd A
A 1S gnea-te.St Numben
=C_then-
Stp ' I f B2Aand B
B 1S qneatest
Chen.
nUmben
PAGE
Colege ID-20oo4026
Oc+e- 05/oG /202 DATE I
Eloo chantE-
Stamt
Read thethnee
Dumhen s a s A A,C
NO TS A>-B2
NO NO
AC
ES
Yes-
PaintE pmint
CCC s the
e is the
9neateSt qneqtest CAiSthe
Numben"j geateSt
Numben '
NumbeD
(End
PAGE
Colege ID-200o4 02C
Dqte-o5/04/202 DATE.
OOO0=
I Pmoqn a m -
autpUt
Entn he nummbee s_ A,Bandc-
30
20
2 f eise Statem en
If (Condition)
mueblockStatament-
eiSe
falseblockStatemnent
Statemen-tY
Gi) Aloonithm
SRp 1 - S t a m t
Step - I n A u t A B
Step 3 - J H A z B _ t h e n gmeatan nunben
A
PAGE
College LD-20 00 40(
Dqte- O5(o 4/202 DATE I
-@O®OOG-=
yPaoqn an
i n dude SAdio.b2
n t main O
int_A,B_
pmintf_( fnt ntoo NUmben s
A and B n'2)
SCanf(CZdZd1n,LA, B);
If (A 8)
pmintf /dis nean_nUm=
bem Am 12,A)
Autput=
tuoo numbeDS A and BB_
0-
1S 0 gDegtn numbeY
PAGE
College Io-20004o2G
O@OOS= Dqte-05/04/202 DATE
Gii)FloLo ch ant
Stamt
Read A,B
EndkK
PAGE
College T0-20oo4o26
Ogte-5/o4/202 DATEII
9®O®OOG=
Syntaz
1f ((onditlon
ALgcmithm
Step 1 Stant
Step 2 Read A, 8_and C
Step 3=1fA 28.
if AC
display_ 6 Sgntaten numbem
PAGE
(oljege TD'200 o4o2 6
Oate o5/64/202 DATEII
®O@OOS-
eLS e
display CIS meat num be
elSe
) Flowchant
Stan+
7Read , B7C
S Toue
Fallse 1
FaTs 3
7ETS mea-
kateG
cisgoe Arst H u r Latest Hum
Otrct Nunb ber be
ber Num berd
S+oP
PAGE
Co)lege (ode:- 20004026
Dqte 05/o /202) DATE lI
-®@ODO®0=
Liy Pano.onam
i n dudr Stdio bz
int A, B,
pmintf (Enten hnee pumbDS\n)
SCamf (C /, d ZdLd2, LA, LB, 2 )
If CA> 8)
if (8 > O
pnintf d is gneateSt nuDben
An, A).
els e
pmintf(CLd_S QneQte Stnm be
\mi, C
elSe
f (82Q-
mintf Zd S meak St numbeD
else
pnlnf C7d 1s qpeatest number-
n2, cl,-
PAGE
College I0.-2o004 o26
Date- 05/04/202). DATE II
@O@DOO-=
OutpUt=-
EntD thnee numbers
Lo
30 1S neatest um bCD
eise=if Jadden
hene S anotheio nay of puHNG
f togetben whene multLpie_de-
Suntax
f CConditim 1)
S+attment 1-
else if CConditlon 2
Statement 2
else 1f
else E
Stattment n,
PAGE
College 0-20oo4026
D C+e- 05/o4/202j DATE
@O®OOS-
i ALgopithm
Step Stant
S Read A,B,
Step 3 - i f A2B-0ndA Z
Display A IS gneatest Numben
else if BAand BZC
_display B1S gneatest numben_
PiSe
display is neatSt numben _
Step 4 Stopp
Gi) flOLO chamt--
Stan tF
Read A
A 8
Tue fa Ise
T a u e 2 8A
false
S 9neatesE
eafro usab7
Numb eD-
BS 9neaten
PAGE
SToP
College I0-2oo0 402c
Date- o5/04 /202 DATE
@OWOOS==
pnagm m -
indude <Stdio h
n t main (
int A, B,-
pnintt ( pnteD thee numbensn2,
Sçanf C ZdZLdz dl1 2 Le,2O
if (A>B LA>o
pmintf (6 7,d iS qmeatest um ben
n 1, A)
e1Se if C8 2A && R
eiS
pninut (CEILd 1S0eatest Dumben
Am 22, c)-
Output-
Entem hnee Nunbems
13
20-
20 1sgntaiest numbe»
PAGE
(Olie ge IP 200o402
Dqte- o5/o4/202 DATE
9®O®OOG=
PAGE