using System;
using System.Collections.Generic;using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Even_Odd
{
Class Program
{
static void main(string[] args)
int a;
Console.WriteLine("Input any number");
a = Convert.Toint32(Console.ReadLine());
if(a % 2 = = 0)
{
Console.WriteLine("The given number is even that is : {0}",a);
}
else
{
Console.WriteLine("The given number is odd: {0}", a );
}
Console.ReadLine();
}
}
}
OUTPUT
Input any number: 6
The given number is even that is: 6
Comments
Post a Comment