作业,急,新手上路!!
题目:假设今天是星期四,编写程序,100天后 是星期几?
int main(void)
{
int today, o;
scanf("%d", &today);
o = 100%7;
o = (today+o) > 7 ? (today+o-7): (today+o);
printf("%d\n", o);
}
[ 本帖最后由 ldg628 于 2010-3-29 23:09 编辑 ]