fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. printf("Enter a:%d\n",a);
  6. scanf("%d",&a);
  7.  
  8. int b;
  9. printf("Enter b:%d\n",b);
  10. scanf("%d",&b);
  11.  
  12. a=a+b;
  13. b=a-b;
  14. a=a-b;
  15.  
  16. printf("Value of a is %d\n",a);
  17. printf("Value of b is %d",b);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5284KB
stdin
2
3
stdout
Enter a:1520372272
Enter b:32765
Value of a is 3
Value of b is 2