You might find it difficult to do so on your own, don't panic just follow the steps below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Odd
{
class Program
{
static void Main(string[] args)
{
int odd, counter;
Console.WriteLine("Enter Range For Odd Numbers");
counter = int.Parse (Console.ReadLine());
for (int a = 1; a<=counter; a++)
{
if (counter%2==1)
{
Console.WriteLine("Odd ="+counter);
}
}
Console.ReadKey();
}
}
No comments:
Post a Comment