This is the number of days this year

Source: Internet
Author: User

Namespace ConsoleApplication11
{
Class Program
{
static void Main (string[] args)
{
int m1 = to, M =-, M2 = to, M3 =, M4 = To, M5 = +, M6 =-, M7 = to, M8 = +, M9 =, M10 = 31, M11 = +;
Console.Write ("Please enter the Year:");
int n = Int. Parse (Console.ReadLine ());
Console.Write ("Please enter the month:");
int y = Int. Parse (Console.ReadLine ());
Console.Write ("Please enter a few days:");
int r = Int. Parse (Console.ReadLine ());

if ((n >= 1759 && n <= 9999) && (y >= 1 && y <=) && (r >= 1 && R <= 31))
{


Console.Write ("This is the Year" + (R) + "Day");

}
if (y = = 2&&r<=28)
{
Console.WriteLine ("This is the Year" + (M1 + R) + "Day");
if (y==3&&r<=31)
{
Console.WriteLine ("This is the Year" + (M1 + M + R) + "Day");
}
if (y==4&&r<=30)
{
Console.WriteLine ("This is the Year" + (M1 + M + m2 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + m4 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + M6 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + M6 + M7 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + M6 + M7 + m8 + R) + "Day");
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + M6 + M7 + m8 + M9 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + M6 + M7 + m8 + M9 + M10 + R) + "Day");
}
if (R > 0 && r <= 31)
{
Console.WriteLine ("This is the year first" + (M1 + M + m2 + m3 + M4 + M5 + M6 + M7 + m8 + M9 + M10 + M11 + R) + "Day");
}

}

Else
{

}
Console.ReadLine ();
}
}
}
}

This is the number of days this year

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.