Skip to content

Commit

Permalink
Created even function.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Feb 1, 2024
1 parent a7db977 commit be7b013
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Hussy.Net/Logic/Even.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Hussy.Net;

/// <summary>
/// Defines static methods for common programming tasks.
/// </summary>
public static partial class Hussy
{
/// <summary>
/// Determines whether the given number is even.
/// </summary>
/// <param name="source">The number to check.</param>
/// <returns>True if the number is even; otherwise, false.</returns>
public static bool EV(int source) =>
source % 2 == 0;
}

0 comments on commit be7b013

Please sign in to comment.