Skip to content

Instantly share code, notes, and snippets.

@KensoDev
Created January 18, 2010 05:42
Show Gist options
  • Save KensoDev/279810 to your computer and use it in GitHub Desktop.
Save KensoDev/279810 to your computer and use it in GitHub Desktop.
/// <summary>
/// Determines whether [is odd number] [the specified number].
/// </summary>
/// <param name="number">The number.</param>
/// <returns>
/// <c>true</c> if [is odd number] [the specified number]; otherwise, <c>false</c>.
/// </returns>
public static bool isOddNumber(int number)
{
if (number % 2 == 0)
return true;
else
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment