/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 210 - Problem 7: Even Odd */ /******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DOS { class Program { static void Main(string[] args) { int number; Console.Write("Please enter a number: "); number = int.Parse(Console.ReadLine()); if (number % 2 == 0) Console.WriteLine("\nEven"); else Console.WriteLine("\nOdd"); Console.ReadKey(); } } }