啊哈磊_编程从这里起步
标题:
变量交换
[打印本页]
作者:
荷为贵
时间:
2020-10-26 22:46
标题:
变量交换
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
a=b-a;
b=b-a;
a=a+b;
printf("%d%d",a,b);
system("pause");
return 0;
}
复制代码
作者:
荷为贵
时间:
2020-10-26 22:47
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
a=b-a;
b=b-a;
a=a+b;
printf("%d%d",a,b);
system("pause");
return 0;
}
复制代码
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2