Write a function (sumSquareOfOddNumbers this number) that addsthe square of the odd integers from 0 to n. Assume thisNumber is apositive integer. Example: (sumSquareOfOddNumbers 6) =35 ; since 1+ (3*3) + (5*5) =35 (sumSquareOfOddNumbers 5) =35 ; since 1+ (3*3) + (5*5) =35 (sumSquareOfOddNumbers 3) =10 ; since 1+ (3*3) = 10 Write a function (sumSquareOfOddNumbers this number) that addsthe square of the odd integers from 0 to n. Assume thisNumber is apositive integer. Example: (sumSquareOfOddNumbers 6) =35 ; since 1+ (3*3) + (5*5) =35 (sumSquareOfOddNumbers 5) =35 ; since 1+ (3*3) + (5*5) =35 (sumSquareOfOddNumbers 3) =10 ; since 1+ (3*3) = 10
Explanation / Answer
please rate - thanks you didn't specify the language so I used C++ #include using namespace std; int sumSquareOfOddNumbers(int); int main() {int n,i; for(;;) {coutn; if(n==-1) {system("pause"); return 0; } cout