Problem

Return (int) Math.pow(base, exp) for exp 0–4.

Examples

  • mathPowSmall(2, 3) -> 8
  • mathPowSmall(5, 0) -> 1
Compile and test (Ctrl+Enter)