This topic is now archived and is closed to further replies.


is X divisible by 10?

Recommended Posts

Original post by wojtos
Hi, how do I check to see if X is divisible by 10? I assume I need the % operation, however I''m not too good with it.

The modulus (%) operator returns the remainder. Ex. a % b returns the remainder of a/b. If the remainder is zero (a % b == 0) then then a is divisible by b.

Share this post

Link to post
Share on other sites