• 2021-04-14
    请阅读以下程序,若运行时输入:1605时,程序的运行结果是。main(){intt,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");elseprintf("PM");}