I am learning While...loops... and I have got everything so far except for one.
How can I do SUM in while...loops statement?
Ex: I have a number call: $number = 1, I know how to list from 1-10
but I don't know how to SUM them all together to get a Total of 55 (1+2+3...+10 = 55)?
help me please!
thank you
hale
How can I do SUM in while...loops statement?
Ex: I have a number call: $number = 1, I know how to list from 1-10
but I don't know how to SUM them all together to get a Total of 55 (1+2+3...+10 = 55)?
help me please!
thank you
hale