#include <stdio.h>
#define NUM 7;
int main (void)
{
int input;
int week;
int day;
printf ("input a day\n");
scanf ("%d", &input);
week = input / NUM;
day = input % NUM;
printf ("%d day are %d weeks %d days\n ", input, week, day);
return 0;
}
输入天数转换周数
最新推荐文章于 2023-07-28 10:16:29 发布