是字符还是数字?是Java还是C#? 先给你个Java的吧:int a = 1, b = 1;if(a == b){ System.out.println("相等");}else { System.out.println("不相等");}
#includemain(){ int a,b scanf("%d%d",&a,&b); if(a==b) printf("a和b相等"); else printf("a和b不相等");}