#include <stdio.h>
#define WEEK 7
int main()
{
int days;
printf("Please input the days:");
scanf("%d",&days);
while(days>0)
{
printf("%d days are %d weeks,%d days.\n",days,days/WEEK,days%WEEK);
printf("Please input the days:");
scanf("%d",&days);
}
return 0;
}
#define WEEK 7
int main()
{
int days;
printf("Please input the days:");
scanf("%d",&days);
while(days>0)
{
printf("%d days are %d weeks,%d days.\n",days,days/WEEK,days%WEEK);
printf("Please input the days:");
scanf("%d",&days);
}
return 0;
}