不使用临时变量,交换两个数字

#include <stdio.h>
int main()
{
	int a=5,b=6;
	printf("before :%d,%d",a,b);
	   a=a*b;
	   b=a/b;
	   a=a/b;
	   printf("after:%d,%d",a,b);
	   return 0;
}
 

猜你喜欢

转载自blog.csdn.net/shoushou_/article/details/89432975
今日推荐