实验二2
#include "stdafx.h" int main(int argc, char* argv[]) { int year; scanf("%d",&year); if(year%4==0) { if(year%100!=0) printf("input the year is 29 days"); else { if(year%400==0) printf("input the year is 29 days"); else printf("input the year is 28 days"); } } else printf("input the year is 28 days");//year:2014,month:2,days:28 return 0; }