fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b;
  5. scanf("%d",&a);
  6. scanf("%d",&b);
  7. if(a>=b)
  8. printf("a=%d b=%d",b,a);
  9. else if(a<b)
  10. printf("a=%d b=%d",a,b);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5272KB
stdin
7
2
stdout
a=2 b=7