// ProductOdds(n) returns the product of the // odd positive integers that are less than or // equal to n. int productOdds(int n) { int result = 1; for(int i = 3; i <= n; i += 2) { result = result * i; } return result; }