高手看下怎么不对
程序代码:
#include"stdio.h" void main() { int i; char s[][14]={ "illegal month", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve" }; printf("input a number:\n"); scanf("%d\n",&i); printf("%s\n",(i<1||i>12)?s[0]:s[i]); }怎么每次都要输入两次啊 才能显示第一次输入的结果