simple summation problem
Posted: Wed Jan 21, 2004 3:40 am
hi all, i need help on this:
I have a loop:
while (condition)
{
***** //other stuffs in here
$variable= ****; //some formulas in here
}
Everytime the loop runs, $variable produces different values. After the loop finishes, I need the summation of all the different values produced.
Help.
Jolan
I have a loop:
while (condition)
{
***** //other stuffs in here
$variable= ****; //some formulas in here
}
Everytime the loop runs, $variable produces different values. After the loop finishes, I need the summation of all the different values produced.
Help.
Jolan