int x; setvbuf(stdout, NULL, _IONBF, 0); printf("please input x:"); scanf("%d",&x); if(x%2==0) if(x%8==0)printf("%c",x); else printf("%d",x); else printf("该数为奇数");