If you insist on a stop gap measure that might not work everytime you can leave sum -= n right where it is, but, at least IMO, it's not the best way to do things.
Lerner 582 Nearly a Posting Maven
joed13k1941 0 Light Poster
Lerner 582 Nearly a Posting Maven
joed13k1941 0 Light Poster
VernonDozier 2,218 Posting Expert Featured Poster
joed13k1941 0 Light Poster
Lerner 582 Nearly a Posting Maven
joed13k1941 0 Light Poster
dexter1984 21 Light Poster
collegetextbook 12 Newbie Poster
jephthah commented: LOL! +12
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.