Question: Draw a Control Flow Graph for the following code fragment: x y a y + 2 b 0 while(x < a) if (y < x)

Draw a Control Flow Graph for the following code fragment:

x

y

a y + 2

b 0

while(x < a)

if (y < x)

x y + 1

y b 2

else

x y + 2

y a 2;

w x + 2

z y a

y y + 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!