Question

Given a flowchart in Figure 3. Write the code segment (main () function) using a pre-test loop.

Fig: 1

Fig: 2