发布网友 发布时间:2023-08-10 18:08
共3个回答
热心网友 时间:2024-12-03 12:44
#include <stdio.h>
int main()
{
int min,hour;
scanf("%d",&min);
printf("%d min = ",min);
hour=min/60;
min%=60;
if(hour>0)
printf("%d hr ",hour);
if(min>0)
printf("%d min",min);
printf("\n");
system("pause");
return 0;
}
热心网友 时间:2024-12-03 12:45
#include "stdio.h"
热心网友 时间:2024-12-03 12:45
printf("h=%d,m=%d\n");改为printf("h=%d,m=%d\n",h,m);