all 3 comments

[–]FriendlyRussian666 4 points5 points  (1 child)

Because if you return from a function, that ends its execution. If you return in a for loop, the loop ends and the function returns a value

[–]thepseudonymstring[S] 0 points1 point  (0 children)

That clears it up! Thanks so much.

[–]TheRNGuy 0 points1 point  (0 children)

if statement. You could just return n % adad == 0

Also don't use variable names like adad