Write another definition of function sumOdds(n) which produces the sum of the odd integers that are less than or equal to n. But this time do not assume that n is odd, only assume that it is positive. For example, sumOdds(4) = 1 + 3 = 4, and sumOdds(8) = 1 + 3 + 5 + 7 = 16. This new sumOdds must still work for odd integers too. For example, sumOdds(9) = 1 + 3 + 5 + 7 + 9 = 25.

(Hint. If n is even, just compute sumOdds(n-1).)

 

    [Language: Cinnameg  Kind: function definition*]

(*You can define more than one function if you put a semicolon between definitions (but not between cases of one definition). Be sure to define a function before you use it.)