We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 19: Interfaces
Day 19: Interfaces
Sort by
recency
|
801 Discussions
|
Please Login in order to post a comment
In C#
I tried dividing as I go throug the loop. If the division results didn't have any decimals, then I added both numbers to the set. This way I only go through half the numbers.
If you are looking for a cleaner way to do this look at debishreenayak13's code. Mine works but runs unnecessary tests.
Python3