in reply to Summing numbers
Your code is not designed to accept more than one number per line.
It's also got a number of other design flaws, but that's the specific one biting you here.
Dave