第六个是if(a==b) |
int a,b; scanf("%d %d",&a,&b); if(a==b) printf("yes"); else printf("no"); system("pause"); return 0; |
if语句中 if (a==b) 应该是a==b,不是a=b。 |
#include<stdio.h> #include<stdlib.h> int main( ) { int a,b; scanf("%d%d",&a,&b); if(a==b)printf("yes\n"); else printf("no\n"); system("pause"); return 0; } |