=== Compliant solution

[source,text]
----
int pow(int num, int exponent) {
  int val = num;
  while (exponent > 0) {
    val *= num;
    --exponent;
  }
  return val;
}
----
