#include<stdio.h>
int main()
{
int a=10;
int b=20;
int tem;
tem=a;
a=b;
b=tem;
printf("a=%d\n",a);
printf("b=%d\n",b);
return 0;
}
#include<stdio.h>
int main()
{
int a=10;
int b=20;
int tem;
tem=a;
a=b;
b=tem;
printf("a=%d\n",a);
printf("b=%d\n",b);
return 0;
}
下一篇:交换两个数内容,无临时变量(初)
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M