Flowcharts are visual representations of a code or program segments
To draw the flowchart, we make use of the following symbols and figures
See attachment for the flowchart that represents the code
Read more about flowcharts at:
https://brainly.com/question/24735155