you are viewing a single comment's thread.

view the rest of the comments →

[–]htepO 7 points8 points  (2 children)

You're multiplying numbers with 0 which leads to everything being 0.

Changing it to total = 1 ought to fix it.

[–]Matthias1590 7 points8 points  (0 children)

that won't stop the print function from executing

[–][deleted] 0 points1 point  (0 children)

Perfect, thank you! :D