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

answer then get brainliest :)​
What did Executive Order 9066 allow for? Question 2 options: The Secretary of War to determine which areas are military zones and who should be excluded from th
Click on the box next to each conjunction that makes sense in the sentence below. The old man sat quietly, _____ he watched the children play. A: and B: nor C:
does anyone know this?
In recent years, Finland has gained a great deal of attention for its very successful educational system. Which statement about Finland's educational reform is
Please answer soon (40 Points)
What does the underlined word mean in the following sentence? Me gusta más mirar la televisión que estudiar en el escritorio. desk chair table t.v. 100 points
HELLPPPPPPP MEEEEE BRO!!!!!!!!!!! whats Evaluate the expression for u = 0. –51u = I NEED THE ANSWER NOW!
Has passageways that carry proteins and other materials from one part of the cell to another.
Where is the light energy converted into an electron flow.