发布网友 发布时间:2022-11-07 08:56
共2个回答
热心网友 时间:2023-11-02 06:05
#include<stdio.h>
int main()
{
char s[12][3]={"猴","鸡","狗","猪","鼠","牛","虎","兔","龙","蛇","马","羊"};
int y;
scanf("%d",&y);
printf("%d年是%s年。\n",y,s[y%12]);
getch();
return 0;
}
热心网友 时间:2023-11-02 06:06
#include <STDIO.H>