View Erry's post (Divisibility How ...) for this comment.

SmileBASIC Community

Oscar

Spoilers · 07/25/2016 4:10 PMPlayed

It's very simple! You probably already know that a number is divisible by another if the remainder of their division is 0. The MOD operator returns this remainder, so you can do something as simple as... NUM1 MOD NUM2 == 0 ...to check if NUM1 is divisible by NUM2.

Advertisement

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Edit Comment

Select an action: