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.
- Perform the following calculation: Multiply
aandb, then addcto the result. - Return the final value to stabilize the potion.
01EXAMPLE 1
Input
a = 5, b = 2, c = 3Output
13Explanation: (5 * 2) + 3 = 13
02EXAMPLE 2
Input
a = 10, b = 4, c = 5Output
45Explanation: (10 * 4) + 5 = 45
Constraints
- Return the calculated number.
FundamentalsOperatorsMath
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
a5
b2
c3
Expected Output
13
Click RUN to test your solution