Percentage Display

How can I get the percentage of two numbers? (For example, the total number of correct and total number of mistakes in the question game)

(# correct / # questions) * 100 = percentage.
(# wrong / # questions) * 100 = percentage.

A simple Google search would also help you on this.

If you’re wondering how to do this in code, you’ll need to track 3 sets of numbers, wrong, right, and total.

1 Like