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