Closed elydpg closed 3 years ago
It is possible that the sum can overflow, as in this image.
This can be fixed by storing the sum in a long, rather than an int.
Ah, good catch! Forgot about the good ol' int overflow.
It is possible that the sum can overflow, as in this image.
This can be fixed by storing the sum in a long, rather than an int.