Glad you figured it out.
Type: Posts; User: Norm
Glad you figured it out.
Look at the statement where sum is assigned a value from an expression. Does that expression look like the terms in the formula you posted?
Can you post the full console from when you execute the...
Can you explain what the problem is? Add some comments that shows what you want the program's output to look like.