Code:for(x=1;x<=day;x++){ age=99(log((max(x,hieght)+a)/7); }

that is my code ....and here is what i am trying to do

computing a luck factor, as this is the formula

99(log(max(the sumation of x=1 as it reaches day)x,hieght)+a/7;

now thats probably confusing, so basically its asking for the max of when x reaches a specific of either x or hieght i take it.

Either way my code is faulty, that for loop just wont complie right, any help would be great