Determining if a number is either a multiple of ten or within a particular set of ranges
I have a few loops that I need in my program. I can write out the pseudo code but I'm not entirely sure how to write them logically. I need - if (num is a multiple of 10) { do this } if (num is within 11-20, 31-40, 51-60, 71-80, 91-100) { do this } else { do this } //this part is for 1-10, 21-30, 41-50, 61-70, 81-90 This is for a snakes and ladders board game, if it makes any more sense for my question. I imagine the first if statement I'll need to use modulus, would if (num == 100%10) be correct? The second one I have no idea. I can write it out like if (num > 10 && num is < 21 || etc) but