check if number is even or odd c#

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

Also in C#: