Multiply by the power of 2 in java?

Soldato
Joined
27 Aug 2004
Posts
17,122
Location
Geordieland
I need to multiply by the power of 1^2, 2^2, 3^3 etc etc

Im crap at maths, is it possible for anyone to tell me how to code this in java pretty please?

Cheers
 
Hmmm, think ive jsut found a solution.

Quick Q, is 2*=2 the equivalent of 2^2? Ive just tried it and it works.
 
Back
Top Bottom