文章
2
粉丝
325
获赞
2
访问
19.9k
#include<stdio.h>
int main()
{
int month ,day,sum=0,i;
int mon[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};
scanf("%d",&month);
scanf("%d",&day);
for(i=4;i<month;i++)
{
sum=mon[i]+sum;
}
sum+=day;
switch((sum-12)%7)
{
case 0:printf("Thurstay");break;
case 1:printf("Friday");break;
case 2:printf("Saturday");break;
case 3:printf("Sunday");break;
case 4:printf("Monday");break;
case 5:printf("Tuesday");break;
&nbs...
登录后发布评论
很棒