// Function for calculating the exponent
Function for calculating the exponent
// Function for calculating the exponent
func calculateExponent(nrOfChars int, maxAllowedCharacters int) int {
	result := nrOfChars
	for i := 1; i < maxAllowedCharacters; i++ {
		result = nrOfChars * result
	}
	return result
}
func calculateExponent ( nrOfChars int , maxAllowedCharacters int ) int { result := nrOfChars for i := 1 ; i < maxAllowedCharacters ; i ++ { result = nrOfChars * result } return result }
Function for calculating the exponent
Function for calculating the exponent