厘米换算英尺英寸 int cm=0; scanf("%d",&cm); int foot=cm/30.48; int inch=(cm/30.48-foot)*12; printf("%d %d",foot,inch); 注意:这题inch那不能用%取余,因为浮点数不能直接取余。<