#include<stdio.h>
int main(){
int x;
printf("输入一个整数:\n");
scanf("%d",&x);
if(x%2)
printf("是奇数"); else
printf("是偶数");
return 0;
}
#include<stdio.h>
int main(){
int days;
printf("输入一个整数:\n");
scanf("%d",&days);
if(days >= 1 && days <= 5)
printf("workdays,fighting\n");
else if(days == 6||days == 7)
printf("weekend,relax\n");
return 0;
#include<stdio.h> int main(){ char ch; printf("输入一个字符:\n"); scanf("%c",&ch); if(ch>= 97&&ch<=122) ch=ch - 32; printf("%c\n",ch); return 0;