# include <stdio.h>
# include <string.h>
# include <math.h>
# define swap(x,y) t=x%y
main()
{
int x,y,t;
scanf("%d %d",&x,&y);
swap(x,y);
printf("%d",t);
}1037
最新推荐文章于 2025-07-19 13:40:17 发布
本文展示了一个使用C语言编写的简单程序,该程序尝试在没有使用临时变量的情况下交换两个整数变量的值。通过定义宏`swap`来实现这一功能,并在主函数中输入两个整数,然后调用`swap`宏进行交换操作。最后输出交换后的结果。
2309

被折叠的 条评论
为什么被折叠?



