标签:io ar cti sp on c amp line ad
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace runnian
{
class Program
{
static void Main(string[] args)
{
Console.Write("输入年 如2008: ");
string s = Console.ReadLine().ToUpper();
int x=int.Parse(s);
if (x % 4 == 0 && x%100 != 0 || x % 400 == 0)
{
Console.WriteLine("{0}本年为闰年!",x);
}
else
{
Console.WriteLine("{0}本年不为闰年!",x);
}
Console.ReadLine();
}
}
}
标签:io ar cti sp on c amp line ad
原文地址:http://blog.csdn.net/zjx211314/article/details/39158027