Uploaded by VIDHYAVANI SARAVANAN

cs algorithm

advertisement
1Whnte an
a
algortthm
4d
Computer 5uente
calulate
the
aren
tircde
and
penmeter
Step 1: tart
Step 2: nput
Btep 3: Area = 314 XAx
tep 4: pesimtBer = 2x 314 x
step 5: prmb area and penmeter
Step &:top.
2 2 lrite
Celsins
an
algorthm
Slep
Cover tempera lure im
Jahrenheit
to
: Start
8tep2: Read
tep : C:F-32)(
Step 4 print c
3. Wlrite
Step 5: p.
algorlthm to imd he
three mumber
om
Biggest
Step 1: 8tart
Step 2: Read three mumberz
A,B,c
tep
A7B and A>C brnt A
is
gveakest
4
ep
B>A and
BrC,,pink B grealest
hep 5 0therwise primlt Cs
grealest
,
Atep 6: Stop.
Aalite on algenthm
quadyah
ind the mols of he
muahm
lep tarl
e
Read vaniahle
Ster
AB,c, D, Yp
AA
ds(timiman-(D)= (B xB) - 4 ÅCc
(alrulate
lepa:
DEo tmue
4
Y (B+D)
2A
A2 2
(-B-D)
2A
Bhep 5:
DEok Fale
5Ip=B
A
RA
53: p + j'p
Step 6
else
wots.
6 prin lomplete
Step 1: 5bp.
5
Wltte ah
GYen numbus
algenthm
b
thd
the
fatbral 4
Step 1: 5tatt
Hep 2: Yend:numbes , fs lonpt, = att
S1ep 3 3atk= 1
i=
Step4 J
i4N
tue
4attorti
step 5 : pHnk Jatt
tep b:tDp
or yalse, *praturtil iEN
Download