Results 1 to 3 of 3

Thread: Just starting to learn

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    2

    Question 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.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    4 to the 3rd power is the same as 4*4*4

    That should get you started.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    2
    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
  •  



Click Here to Expand Forum to Full Width