belongs to collection: all conditional programs in c# language
Write C# Program to check whether entered number is odd or even.
I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability..
static void Main(string args)
Console.WriteLine("Enter a number: ");
number = Convert.ToInt32(Console.ReadLine());
// Even number if remainder is 0
if (number % 2 == 0)
Console.WriteLine("Entered Number is an Even Number");
Console.WriteLine("Entered Number is odd Number");
Enter a number:
Entered Number is an Even Number
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.