The Math Architect

Easy+15 XP

Mission Briefing

The Grand Alchemist needs to mix three highly volatile potions. If the math is wrong, the laboratory will explode! You must build a secure calculation engine.

The Concept: Arithmetic Operators

JavaScript works exactly like a powerful calculator using standard arithmetic operators.

  • +: Addition
  • -: Subtraction
  • *: Multiplication
  • /: Division
  • %: Remainder (Modulo)

The Objective

Your function receives three numeric parameters: a, b, and c.

  1. Perform the following calculation: Multiply a and b, then add c to the result.
  2. Return the final value to stabilize the potion.

01EXAMPLE 1

Inputa = 5, b = 2, c = 3
Output13

Explanation: (5 * 2) + 3 = 13

02EXAMPLE 2

Inputa = 10, b = 4, c = 5
Output45

Explanation: (10 * 4) + 5 = 45

Constraints

  • Return the calculated number.
FundamentalsOperatorsMath
JavaScript
Loading...
3 Hidden

Input Arguments

a5
b2
c3

Expected Output

13

Click RUN to test your solution