Answers for "check if number is even or odd c#"

C#
5

check if number is even or odd c#

int i = 5;
if (i % 2 == 0)
{
	// even
}
else
{
	// odd
}
Posted by: Guest on December-22-2019

Code answers related to "check if number is even or odd c#"

C# Answers by Framework

Browse Popular Code Answers by Language