multiples of a number in Flash
multiples of a number in Flash
Out of context: Reply #1
- Started
- Last post
- 8 Responses
- phirschybar0
You can use the % operator. Which gives you the remainder of an operation. So...
10 % 3 = 1
and 9 % 3 = 0therefore, if you get 0, your number is a multiple.
Got it?