using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
int a;
Console.WriteLine("Enter No. : ");
a = int.Parse(Console.ReadLine());
if (a % 2 == 0)
{
Console.WriteLine(a + " No. is Even");
}
else
{
Console.WriteLine(a + " No. is Odd");
}
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
int a;
Console.WriteLine("Enter No. : ");
a = int.Parse(Console.ReadLine());
if (a % 2 == 0)
{
Console.WriteLine(a + " No. is Even");
}
else
{
Console.WriteLine(a + " No. is Odd");
}
Console.ReadKey();
}
}
}
No comments:
Post a Comment