#include <stdio.h>
int main()
{
      int firstNo, secondNo ;

      printf("Enter the first number: ");
      scanf("%d", &firstNo);

      printf("Enter the second number: ");
      scanf("%d",&secondNo);


      firstNo = firstNo - secondNo;

      secondNo = firstNo + secondNo;

      firstNo =secondNo - firstNo ;

      printf("\n After swapping, firstNumber is :  %d\n", firstNo);
      printf("  After swapping, secondNumber is : %d", secondNo);

      return 0;
}


OUTPUT :

Enter the first number: 123
Enter the second number:789

After swapping, firstNumber is :  789
After swapping, secondNumber is : 123


For Other Programs Visit The WebSite:-   https://www.techapurba.com/

Follow Me On Social Media :-


For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/