Posts by João Paulo CR • 16 points
1 post
-
0
votes1
answer29
viewsA: Output in percentage by taking into account user inputs
Usually the average is calculated at the end of the for/while cycle. Next time, give more concrete names to the variables, e.g., countSim, countNao, nHomens, nMulheres, etc. About the calculation,…