Question

Write a code segment based on voting system as shown in Table 2 using selection statement.

Fig: 1

Fig: 2