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",a,b);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
2 4
stdout
a=4,b=2