problem with a simple functionYou need to do: r += s + (x * x * x); Make sure you set r to 0 before using it.
problem with a simple functionAccording to your calculation, s is always 0. What is the calculation you're trying to perform?
This user does not accept Private Messages