JoeM3388 JoeM3388
  • 03-04-2015
  • Computers and Technology
contestada

Give a recursive algorithm for finding the sum of the
first n odd positive integers.

Respuesta :

Hippalectryon
Hippalectryon Hippalectryon
  • 03-04-2015
I'm writing that in some sort of pseudocode; if you don't understand it, feel free to ask for more details in the comments.

function sumOdd(n)
    if n==1 then
        return 1
    end if
    return (sumOdd(n-1))+(n*2-1)
end function
Answer Link

Otras preguntas

PLEASE HELP FAST ITS DUE SOONNN
NEED ANSWERS ASAP THREE POINTERS Scatter plot project Below are the average three-point field goals per NBA game over seasons between 1979 and 2019. (The year r
I like (the) shoes. Group of answer choices me gusta los zapatos me gustan los zapatos me gusta los zapatos me gusta los zapatos
need help asap and i will report any unnecessary comments
HELPP!!! I need help ASAP
If a member firm believes that a senior citizen with an account at the firm is being financially exploited, the member would contact the client's A attorney B c
Gps is calculating the route to your destination Change Into negative Please fast ♥️
Since the 1990s, many school districts have gone backward by becoming more segregated. Which section BEST explains WHY this has happaded None Of The Same Opport
I need a answer for this
Please explain how shade-adapted plants tend to differ from sun-adapted plants, using the terms: specific leaf area, dark respiration, root mass fraction, leaf