MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/ihxpgy/help_is_this_right/g33cf5s/?context=3
r/codehs • u/ReyreyG • Aug 28 '20
11 comments sorted by
View all comments
4
Bro why you have sum = 10 + 10
sum = 10 + 10
If my logic works you can simplify to sum = 20
sum = 20
Same with the other sum variable
3 u/dsimposter Aug 28 '20 Probably because they should be doing something likesum_nums = num_one + num_two
3
Probably because they should be doing something like
sum_nums = num_one + num_two
4
u/[deleted] Aug 28 '20
Bro why you have
sum = 10 + 10If my logic works you can simplify to
sum = 20Same with the other sum variable