+ 3
[Solved] [C#] Help me debug my code please 😁! (Abundant Numbers challenge).
I recently came across the challenge called abundant numbers and came up with a code for all difficulties. But for some reason the method which I use to print all abundant number in range doesn't work as expected and prints all the numbers in range even tho I used the same logic I used to find whether a number is abundant or not. https://www.sololearn.com/learn/4533/?ref=app https://code.sololearn.com/cpRiYHGzMi3S/?ref=app
1 Resposta
+ 3
Your list doesn't get emptied so once it gets big enough everything afterwards is abundant.