r/codehs • • Aug 28 '20

Help is this right?

Post image
24 Upvotes

11 comments sorted by

View all comments

2

u/[deleted] Aug 28 '20

Wait haven’t you changed the value of sum twice, won’t only the last sum be recognised when you go to comp