package com.examplehub.maths; public class Power { /** * Returns the value of the first argument raised to the power of the second argument. * * @param a the base. * @param b the exponent. * @return the value {@code a}{@code b}. */ public static long pow(int a, int b) { int power = 1; for (int i = 1; i <= b; i++) { power *= a; } return power; } }