The C Programming language Chapter 5 Control Flow 例输入两个数并判断两数相等否 ch5 2.c*/ #include <stdio h main( Enter integer a: 12 int a b printf("Enter integer a. \ Enter integer b: 12 a==b scan f( 0d",&a) printf( Enter integer b: scanf(%/od", &b) Enter integer a: 12 if(a==b Enter integer b: 9. printf( a==bn") !-=b else printf(al=bn)The C Programming Language Chapter 5 Control Flow /*ch5_2.c*/ #include <stdio.h> main() { int a,b; printf("Enter integer a:"); scanf("%d",&a); printf(“Enter integer b:"); scanf("%d",&b); if (a= =b) printf(“a= =b\n"); else printf(“a!=b\n"); } 例 输入两个数并判断两数相等否 Enter integer a:12 Enter integer b:12 a= =b Enter integer a:12 Enter integer b:9 a!=b