C语言不要C+什么的,在线等急样例输入1 2 3 4 5 6 7样例输出Thursday Friday Saturday Sunday Monday Tuesday Wednesday
#include<stdio.h>
int main()
{char week[][10]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
int n;
while(scanf("%d",&n)!=EOF)
{n=(n+3)%7;printf("%s\n",week[n]);}
return 0;
}
题目是这样的,我需要输入之后一次性都运行出来,谢谢大哥了。一定采纳