I was unable to use the do-while or while loop for the following diagram:

Here A, B and C are functions. How to write pseudo code for the diagram above?
EDIT: This is from my C ++ programming practice. Without "cycle B" (or "cycle A"), I can write it as the following:
Start
Input x;
while(x!=2)
{
A(); Input x;
}
C();
End
However, when "cycle B" comes in, I have no idea how to turn it on.
source
share