#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
Enter the first number: 123
Enter the second number:789
After swapping, firstNumber is : 789
After swapping, secondNumber is : 123
Follow
Me On Social Media :-
INSTA photography page :- https://www.instagram.com/photo_mania_hub/
Twitter link : - https://twitter.com/ApurbaKhanra199
Facebook page link (Crazy Coders) :-https://www.facebook.com/codercrazy/?modal=admin_todo_tour
Insta photography link :- https://www.instagram.com/photo_mania_hub/
Facebook link :- https://www.facebook.com/profile.php?id=100009747586288
FB photography page :-
https://www.facebook.com/photomaniahub/?modal=admin_todo_tour
For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/
0 Comments