TA贡献1017条经验 获得超1032个赞
#include"stdio.h" void main() { int minute=500; int hour=minute/60; int minute2=500-60*hour; printf("%d小时%d分钟\n",hour,minute2); }
TA贡献8条经验 获得超10个赞
#include<stdio.h> int main(){ int time = 500; int h = time/60;//小时 int min = time%60;//分钟 printf("小时:%d 分钟:%d ",h,min); }
举报