mob/verb/q(N as num,Q as num)
if(N is multiple(Q)&&Q is factor(N))
world << Q
_>Or something along those lines.
ID:269023
Jan 24 2005, 9:09 am
|
|
How would you go about doing something like:
mob/verb/q(N as num,Q as num) _>Or something along those lines. |
Jan 24 2005, 9:44 am
|
|
If N is a multiple of Q, then Q is a factor of N (assuming Q is a whole number). You can use the modulo operator (%) to see if one number is evenly divisible by another. If X%Y is 0, then X is evenly divisible by Y.
|
In response to Shadowdarke
|
|
Ooooh, thanks Shadowdarke. :O
|