add Programmyday form github

This commit is contained in:
Ruben Kallinich
2024-07-25 15:47:46 +02:00
parent 09c8eab938
commit 7362c3d7ce
132 changed files with 3669 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
namespace EvenOrOddExtention
{
internal class Program
{
static void Main(string[] args)
{
int input = 105;
Console.WriteLine(input.EvenOrOdd());
}
}
static class EvenOrOddExtention
{
public static string EvenOrOdd(this int input)
{
if (input % 2 != 0)
{
return "Odd";
}
return "Even";
}
}
}