How It Works
Open
Diagram
Demo
Save
Sign in
Русский
Edit exercise
C++
Build a program trace by clicking on the beginning and end of statements in the order of execution.
Which action has to be carried out first?
if
(
is_ok
)
// choose
{
while
(
free
)
// walk
{
do1()
;
}
}
else if
(
escape
)
{
do
// run
{
do2()
;
}
while
(
ready
);
}
else
{
do3()
;
do4()
;
}
Congratulations!
You have successfully completed the task!
Ok
Let's work this out
What determines whether an iteration of a while loop should begin:
the number of completed iterations;
the value of loop's control condition;
the value of the loop counter;
the first statement of the loop's body.
Submit
I understood my mistake
Let's work this out
What value of the control condition allows the iteration of a while loop to start:
true;
false.
Submit
I understood my mistake