#include <stdio.h>
int main()
{
int a = 0;
printf("请输入月份\n");
scanf("%d",&a);
if(a>=3 && a<=5){
printf("春\n");
} else if(a>=6 && a<=8){
printf("夏\n");
} else if(a>=9 && a<=11){
printf("秋\n");
} else {
printf("冬\n");
}
return 0;
}
include <stdio.h>
int main()
{
int a = 0,b = 0,c = 0;
printf("请输入三个数字");
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a>=b && a>=c){
printf("最大值为%d\n",a);
}else if(b>=a && b>=c){
printf("最大值为%d\n",b);
}else{
printf("最大值为%d\n",c);
}
return 0;
}
data = data % 10;
int temp = data / 10;
if(0 == temp){
break;
}
}
printf("该整数的最后一位数字为%d\n",data);
return 0;
}