#include<stdio.h>
int swap(int a,int b);
int main()
{int a,b;
printf("enter value of a");
scanf("%d", a);
printf("enter value of b");
scanf("%d", b);
int temp = a;
a=b;
int temp = b;
printf("after swapping: x = %d, y = %d", x, y);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: