assignment on recursion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aplon
    New Member
    • Feb 2007
    • 1

    assignment on recursion

    could you please help me out in solving the following funtion using recursion
    2(power,n)=2*2( power,n-1)

    i thanks you for your kind consideration and help.
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by aplon
    could you please help me out in solving the following funtion using recursion
    2(power,n)=2*2( power,n-1)

    i thanks you for your kind consideration and help.
    have a go at writing it nonrecursively first - it will give you an idea of how the algorithm works before dealing with the more complex problem of recursion as well. If you have problems post the code and contributers will help.

    Comment

    Working...