in reply to Sum of Input

This isn't your fist post here, this is in the wrong section of the forum. Where should I post X? is displayed each time your are posting, please don't ignore it's advice.

Examine your code and the input data (note that 6 + 11 = 17), notice that you aren't resetting $linetotal to zero after printing the results for each line.

Replies are listed 'Best First'.
Re^2: Sum of Input
by changma_ha (Sexton) on Aug 04, 2010 at 09:39 UTC

    Thanx marto for your suggestion and advice.From now onwards i will not post in the wrongs threads. Now my problem is solved.