well it should come out 6.00 but it comes out 9.00 when I enter item 1 and then exit?
Of course,
1. You type "1" and line 78 reads it into item
2. total = total + item = 0 + 1 = 1
3. You type "8" and line 78 reads it into item
4. total = total + item = 1 + 8 = 9
5. Loop has completed and total==9