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
Get step-by-step solutions from verified subject matter experts
