#include <stdio.h>
int main(void)
{
int m;
char *months[12] =
{
"January", "February", "March", "April", "May", "June", "July",
"August", "September", "October", "November", "December"
};
while(scanf("%d", &m)!=EOF)
if(m<=12&&m>=1)
puts(months[m - 1]);
else printf("Wrong!\n");
return 0;
}
问题 G: C语言习题 输出月份
最新推荐文章于 2022-10-18 14:37:57 发布