ketotal=0; // add this
for(int i=0;i<n;i++){
ketotal=ketotal+kineticenergy[i];
}

[code]
If you want to show "<", you will have to type "& lt;". (without space in between)
If you want to show ">", you will have to type "& gt;".
Because you can use html code directly (while normal user can not), so the system will interprete "<" as part of html code.
[/code]