用c语言写一个把分钟转换成小时和分钟的程序
时间: 2023-05-28 18:05:42 浏览: 236
3424,把秒转换成时分秒的c语言源码,c语言程序
```c
#include <stdio.h>
int main()
{
int minutes, hours, remain_minutes;
printf("Please enter the number of minutes: ");
scanf("%d", &minutes);
hours = minutes / 60;
remain_minutes = minutes % 60;
printf("%d minutes is equal to %d hours and %d minutes.\n", minutes, hours, remain_minutes);
return 0;
}
```
阅读全文