Published
- 1 min read
check if number is even or odd c#
The solution for this is noted below
check if number is even or odd c#
Solution
int i = 5;
if (i % 2 == 0)
{
// even
}
else
{
// odd
}
Try other methods by searching on the site. That is if this doesn’t work