Dec-05-2022, 09:50 PM
(This post was last modified: Dec-05-2022, 09:50 PM by deanhystad.)
I don't think it is worse. I think that is actually pretty close. The problem is where you reset the total. You are doing this:
Output:numbers =
1
2
3
4
5
6
total = 0
total = total + 1
total = 0
total = total + 2
total = 0
total = total + 3
total = 0
total = 0
total = total + 4
. . .
When should you reset the total?