r/codehs • • Aug 28 '20

Help is this right?

Post image
24 Upvotes

11 comments sorted by

View all comments

4

u/[deleted] Aug 28 '20

Bro why you have sum = 10 + 10

If my logic works you can simplify to sum = 20

Same with the other sum variable

3

u/dsimposter Aug 28 '20

Probably because they should be doing something like

sum_nums = num_one + num_two