Check out example codes for "unity check if number is multiple of x". It will help you in understanding the concepts better.

Code Example 1

if (number % 3 == 0)
{
	// The number is a multiple of three
}

Learn ReactJs, React Native from akashmittal.com