question about recursive even sum program

Posted by davit-datuashvili on Stack Overflow See other posts from Stack Overflow or by davit-datuashvili
Published on 2010-06-06T11:55:08Z Indexed on 2010/06/06 12:02 UTC
Read the original article Hit count: 311

Filed under:
|

hello i need program which returns sum of all even number <= to given n number
for example if n=even (let say 10) sum will be 2+4+6+8+10 or if n is odd (let say 13) 2+4+6+8+10+12 please help it should be recursive algorithm

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about homework