#include <stdio.h>
int main() {
int first_no,second_no;
printf ("Enter the first number:");
scanf ("%d",&first_no);
printf ("%d\n",first_no);
printf ("Enter the second number:");
scanf ("%d",&second_no);
printf ("%d\n",second_no);
first_no=first_no+second_no;
second_no=first_no-second_no;
first_no=first_no-second_no;
printf ("After swapping\n");
printf ("First number:%d\n",first_no);
printf ("second number:%d\n",second_no);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: