using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Check1
{
class Program
{
static void Main(string[] args)
{
int i;
Console.Write("Enter a number : ");
i = int.Parse( Console.ReadLine());
if(i % 2 == 0)
{
Console.Write("Entered number is an Even ");
Console.Read();
}
else
{
Console.Write("Entered number is an Odd");
Console.Read();
}
}
}
}
watch full tutorials
Post a Comment
If you have any doubt please let me know