题解 | 明天星期几?
明天星期几?
https://www.nowcoder.com/practice/9db9e3d19cde405ba94db09ed1c5f3f3
#include <stdio.h>
int main() {
int d;
scanf("%d",&d);
if(d<1||8<d)
{
printf("error");
return 1;
}
int e;
e = d+1;
if(e<8)
{
printf("%d",e);
}
else {
printf("%d",1);
}
return 0;
}

