#include <stdio.h> int main() { int x, y; if ((x = y = 2) >= x && x == 5) //x=5是赋值,x==5是判断,另外你多打了个分号 { printf("%d", x); } return 0; }