raiseToPower

fun raiseToPower(num: Long, pow: Int): Long

Recursively raises a number to a certain power. This method returns the original number is power is 1, otherwise multiplies the number on the result of calling itself with decremented power. This means that the number will be multiplied on itself (the original) n amount of times, where n is the power.