|
-
Nov 10th, 2002, 11:36 AM
#1
Thread Starter
New Member
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.
-
Nov 10th, 2002, 01:09 PM
#2
PowerPoster
4 to the 3rd power is the same as 4*4*4
That should get you started.
-
Nov 11th, 2002, 02:28 PM
#3
Thread Starter
New Member
Thanks, I've got it working.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|