C/C++ Arena

Step 6 of 6

Put it together

Time to write a small calculation on your own.

A player's ADR (average damage per round) is total damage divided by rounds played. Given the variables below, print:

Total damage: 2090
ADR: 83.60

Total damage is the sum of the three halves' damage (it's a long match: first half, second half, overtime).

Previous: Prefix vs postfix ++