using System;
class WeekDays
{
public static void Main()
{
int number1;
Console.WriteLine("Enter No Between 1 to 7:");
number1=Convert.ToInt32(Console.ReadLine());
if(number1==1)
{
Console.WriteLine("Sunday");
}
else if(number1==2)
{
Console.WriteLine("Monday");
}
else if(number1==3)
{
Console.WriteLine("Tueday");
}
else if(number1==4)
{
Console.WriteLine("Wednesday");
}
else if(number1==5)
{
Console.WriteLine("ThursDay");
}
else if(number1==6)
{
Console.WriteLine("Friday");
}
else if(number1==7)
{
Console.WriteLine("Saturday");
}
else
{
Console.WriteLine("Please Enter No Between 1 to 7");
}
}
}
class WeekDays
{
public static void Main()
{
int number1;
Console.WriteLine("Enter No Between 1 to 7:");
number1=Convert.ToInt32(Console.ReadLine());
if(number1==1)
{
Console.WriteLine("Sunday");
}
else if(number1==2)
{
Console.WriteLine("Monday");
}
else if(number1==3)
{
Console.WriteLine("Tueday");
}
else if(number1==4)
{
Console.WriteLine("Wednesday");
}
else if(number1==5)
{
Console.WriteLine("ThursDay");
}
else if(number1==6)
{
Console.WriteLine("Friday");
}
else if(number1==7)
{
Console.WriteLine("Saturday");
}
else
{
Console.WriteLine("Please Enter No Between 1 to 7");
}
}
}
0 comments:
Post a Comment