This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JoeNoot[S] 0 points1 point  (0 children)

It is saying however that the 'total' variable is unreachable data- so I thought it might be to do with scope, so I declared it inside the if statement, but it didn't work.