【填空题】请阅读以下程序 若运行时输入:1605<CR>时 程序的运行结果是。 main() {intt h m; s
已帮助 人
【填空题】请阅读以下程序,若运行时输入:1605<CR>时,程序的运行结果是。 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"); else printf("PM"); }

回答
共1条回复-
b
