📅  最后修改于: 2022-03-11 14:58:45.756000             🧑  作者: Mango
#include
int main()
{
int a, b, temp;
printf("enter the values of a and b: \n");
scanf("%d%d", &a, &b );
printf("current values are:\n a=%d\n b=%d\n", a, b);
temp=a;
a=b;
b=temp;
printf("After swapping:\n a=%d\n b=%d\n", a, b);
}