Check out example codes for "check if number is even or odd c#". It will help you in understanding the concepts better.

Code Example 1

int i = 5;
if (i % 2 == 0)
{
	// even
}
else
{
	// odd
}

Learn ReactJs, React Native from akashmittal.com