Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
OddEven
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int number = 3; bool counter = false; OddEven(number); } public static bool OddEven(int number) { if (number % 2 == 0 && number > 0 ) { Console.WriteLine("The number {0} is even", number); return true; } else if (number <= 0) { Console.WriteLine("Incorrect number, please specify a number which is larger than 0"); return false; } else { Console.WriteLine("The number {0} is odd", number); return true; } } } }
run
|
edit
|
history
|
help
0
Pascal Tringle
kod 1
Example of dates in c#, Ejemplo de fechas en c#
linqs
Card Shuffling
EFC AZAAAA
newMultQ working on more2
Case where use of default constructor ( this() ) is mandatory
async example with HttpClient
code1