+ 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

16th Mar 2018, 8:15 PM
Rusty.Metal
1 Réponse
+ 3
Your list doesn't get emptied so once it gets big enough everything afterwards is abundant.
16th Mar 2018, 9:40 PM
John Wells
John Wells - avatar