Ich habe ein mal mit for Schleife und einmal auch mit Math.pow(a,b) probiert.