Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    9
    Views
    3,506

    [SOLVED] Re: Help with Class Methods(Probably simple)

    Your second method of coding it only calls another method. It doesn't do anything.
  2. Replies
    9
    Views
    3,506

    [SOLVED] Re: Help with Class Methods(Probably simple)

    First suggestion, use a new variable to hold the results, don't reuse num.
    You need a loop where you multiply the result by num while using the value of power to control the number of times thru the...
  3. Replies
    9
    Views
    3,506

    [SOLVED] Re: Help with Class Methods(Probably simple)

    How would you do it manually?
    For example:
    if power = 1 return the number.
    Mult the number by itself
    if power = 2 return the product
    otherwise mult the above result by the number
    incr the...
Results 1 to 3 of 3