Jd Howard wrote:
Have a look at line 12.
Manish
I know that it is adding x + 0, what I am asking is how do i add x + 0 and have rt become the answer so that I can add another x to it and so on like that, sorry if I wasn't clear in what I was asking for help with.
....what I meant to say is that in every loop iteration you are creating and initailising count with some value, so how can you say that
you are maintaining the total....you need to declare count before start of loop and then increment it accordingly inside loop.
Manish