分支-03. 三天打鱼两天晒网-B3

时间:2023-03-09 20:48:58
分支-03. 三天打鱼两天晒网-B3
 /*B3-分支-03. 三天打鱼两天晒网
*Main.c
*测试通过
*/ #include <stdio.h>
#include <stdlib.h>
int main()
{
int day;
int reminder; scanf("%i", &day);
if (day <= || day > )
exit();
reminder = day % ;
if (reminder == )
{
printf("Drying in day %i\n", day);
}
else
{
if (reminder <= )
{
printf("Fishing in day %i\n", day);
}
else
{
printf("Drying in day %i\n", day);
}
}
return ;
}