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