#include<stdio.h>
int main(){
int a=1,b=2,c;
c=a;
a=b;
b=c;
printf("a=%d\nb=%d\n",a,b);
return 0;
}
两个数的交换,代码简单,不必观看
最新推荐文章于 2021-07-10 10:00:41 发布
#include<stdio.h>
int main(){
int a=1,b=2,c;
c=a;
a=b;
b=c;
printf("a=%d\nb=%d\n",a,b);
return 0;
}