0% found this document useful (0 votes)
12 views7 pages

Embedded Program Question

Uploaded by

Sivabalan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views7 pages

Embedded Program Question

Uploaded by

Sivabalan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

take $o,t

Coop depend not does


abo dop on
limit-a Why?
emtînvai
loop wbila
take Cauation
§o , învai
ent
IRrit-2 ampla ex Res TnonjConcfi
;
a) (?a whila
limit =a
moion Code
Code Apply
-2) -(fmtb (ix While Exampe
Pregom ankc Som
oulara Coop rmovin By
How?:
loop Code amount
Moton'? 0ode
uivoy queston:
for (i-o;i<N; it*)

Apply Code mofion°

optfmez= aIîJ;
For (3 =0 ,j<Mjjtt)
ophimze * brtJI;
z[iJGJ:

Concuion: ali] ig
vals, does not. lepord on
oop

for Coop.
dapend
Q.Cyclonnaahe Comçlarhy ob. cDFG-Comhe data'
flou
Cyclomalfc
Com pleriy Compliy
CDFG (S Conhol Flow ard dat

Jvaph?cal sapmenafon"
Exampla
^Bep 1. GRve Numbeg o
seped. 'numbes no de
stum
înt. Fi(nt n,înt y)i
2 whils lx!=y)

X=X-Y )
ee y y-x)
Quekon

2 f CC«d)
3

X>2)

CDFG.

8
ee
N =
10

(Componn

fov mula: yclomake Complenh

4
(3) def-ue
beoeon dafniion
Pclaon shie
VaRabla Sub &aquen.
prgram
An we:
Example Vasiabo
X= a+b
Tef -we pain

3fCy15) De fRnron: x -atb


y- x *2
Z= y/3
ele

Y= x* 2
De (inihon

dz*4
e - c-d 3. Def - ue Z2X-1
De fini ion :

b. for e 4
D C= x+y
ec-d
5. for

.
Find al
pain
X a-b

t(z<y)poc10);
Awwen
dolasd
( Def- e

fon

de f: REz<9).
foy z? we3 proC. 1()
32 = e-f
Cc- ul
uing bon Computkion
wkila(z)
z1,it)
for(?-O, i

Pracuke

Compuhton.

You might also like