fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,c;
  6. scanf("%d,%d",&a,&b);
  7. c=a;
  8. a=b;
  9. b=c;
  10. printf("交换后a=%d,b=%d\n",a,b);
  11.  
  12.  
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
3,4
stdout
交换后a=4,b=3