文章
1
粉丝
41
获赞
0
访问
595
#include<stdio.h>
#include<string.h>
int main(){
char date[7][10]={"Thursday","Friday","Saturday","Sunday","Monday","Tuesday","Wednesday"};
int month=0,day=0;
scanf("%d",&month);
scanf("%d",&day);
int sum=0;
switch(month){
case 4:
case 5:sum=(month-4)*30+day-12;break;
case 6:
case 7:sum=(month-4)*30+day-12+1;break;
case 8:sum=(month-4)*30+day-12+2;break;
case 9:
case 10:sum=(month-4)*30+day-12+3;break;
case 11:
 ...
登录后发布评论
暂无评论,来抢沙发