问答题
main()
{
int t,h,m;
scanf("/%d",&t);
h=(t/100)/%12;
if(h==0)h=12;
printf("/%d:",h);
m=t/%100;
if(m<10)printf("0");
printf("/%d",m);
if(t<1200||t===2400)
printf("AM");
else printf("PM");
}
若运行时输入:1605<回车>,则程序的运行结果为______。
【正确答案】
4:05PM
【答案解析】
提交答案
关闭