Untitled
static void Main(string[] args) { int number = Convert.ToInt32(Console.ReadLine()); bool evenNumber = (number % 2 == 0); if (evenNumber) { Console.WriteLine($"{number} is even."); } Console.ReadLine(); }
Leave a Comment
static void Main(string[] args) { int number = Convert.ToInt32(Console.ReadLine()); bool evenNumber = (number % 2 == 0); if (evenNumber) { Console.WriteLine($"{number} is even."); } Console.ReadLine(); }