万年历(1990之后)


1. 万年历(1990之后)

#include
int main()
{
    int year,month;
    int i=1900;
    int sum=0;
    int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
    printf("please input year and month:"); 
    scanf("%d%d",&year,&month);
    if(year<1990 || (month<1 || month>12))
    {
        printf("input error");
    }   
    else
    {

        while(i

你可能感兴趣的:(万年历(1990之后))