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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.