#include<stdio.h>#include<string.h>int main(){ int month; char *a[]={"January","February","March","April","May","June","July","August","September","Octorber","November","December"}; printf("请输入月份 "); scanf("%d",&month); if(month>0&&month<13) { printf("%s\n",*a[month-1]); } else { printf("请输入有效月份!\n"); }}
- 2 回答
- 0 关注
- 1347 浏览
添加回答
举报
0/150
提交
取消