#include <stdio.h> int main () { int x = 8, y = 0; if (x > 1 && x <= 20) y = x; printf ("%d\n", y) //不是"打印y"这种中文字符 system ("pause"); return 0; }
#include <stdio.h> #include<windows.h> int x ,y; int main(void) { int x =8; if((1<=x)&&(x<=20))// { y=x; } printf("\n打印y:%d\n",y ); system("PAUSE"); return 0; }