I'm working on some exercises, and not entirely sure how you check for fractional numerics? By this I mean, I need a piece of code or a command that I can use in my IF statement that will let me check if a number i'm dividing is divisible by two numbers. However I do not know how to make it "check" if a decimal is left over.

Pseudo-coding this. I basically am just wanting

if 100 divisable by 3
output
else
output

if 100 divisble by 4
output
else
output


etc etc etc. It just uses a loop to go up to 101, then 102 etc. All that I can do. But I need the part that will tell me if it is or not. Not sure if there is a built in code or something my mathematically retarded brain doesn't know how to figure out

(For reference. I don't need the entire thing written out. I just need a small line or two of code that will let me check and determine if it's divisble or not).

Thanks in advance