-
Just starting to learn
I am taking a class about VB.NET and cannot figure out this problem: (I'm really bad at math)
I have to write a method IntegerPower (base, exponent) that returns the correct value. Exponent is a positive integer and Base is an integer. I should be using a For/Next loop or a While loop. I can't use any Math library methods or ^ operator.
Any assistance to get me started in the right direction would be appreciated.
-
4 to the 3rd power is the same as 4*4*4
That should get you started.
-
Thanks, I've got it working.