输入一个数字(范围在0~9 之间,若不在此范围内显示输入错),输出对应的英文单词(Zero, One,Two, ……,Nine)。
main( )
{
int i;
char *digit[10]={″Zero″, ″One″, ″Two″, ″Three″, ″Four″,
″Five″, ″Six″, ″Seven″, ″Eight″, ″Nine″};
scanf(″% d″, _________); /*第一空 */
printf(″%d→″, i);
if(____________) /*第二空 */
printf(″%s\n″,digit[_________]); /*第三空 */
else printf(″Input error! \n″);
}