Answer:
The flowchart to this question can be given in attachment.
Step-by-step explanation:
In the given statement, a flowchart is defined, in which we use an oval shape to start the, in the next step square shape is used, that initializes the value 0 in z variable, and an input box is used for user input in x variable.
- In the next step, the conditional box is used, that checks variable x value if the value is equal to 1, it will increment the value of variable z by 1.
- Inside this another, if block is used, that check value of z equal to 5, if the value does not match it will increment the value of z, and prints its value.