0

When there is a if while else in pseudocode how do you interpret it in a flow chart. For example,

a1 
if c1
{
    a2
    while c2
      {
          a3 
      }
}
else 
{ 
    a4
}

is the else statement connected to the if statement or the while statement and if it is connected to the if statement what happens to false output for the while statement. I am new here so my apologies if this is in the wrong forum.

2
Contributors
1
Reply
17
Views
3 Years
Discussion Span
Last Post by firstPerson
0

Else statement is connected to the if statement. Once the if statement is executed, else statement is not executed even if the while statement inside the if returns false or true or never returns.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.