Step 1 of 6
Arithmetic
C has the usual math operators: +, -, * (multiply) and / (divide).
int total = 12 * 3 + 4; // 40
Multiplication and division happen before addition and subtraction, just like in school math. Parentheses change the order: 12 * (3 + 4) is 84.
Your turn: make the program print Damage: 96 by filling in the operators. Base damage is 30, the multiplier is 4, armor absorbs 24.