题解 | #交换两个变量的值#
交换两个变量的值
https://www.nowcoder.com/practice/2c577d21ca334724aa5807744256b6f2
#include <iostream>
using namespace std;
//#include <algorithm>
int main() {
int a = 0;
int b = 0;
cin >> a;
cin >> b;
//write your code here.......
// swap(a,b);
int temp;
temp = a;
a = b;
b = temp;
cout << a << " " << b << endl;
return 0;
}

SHEIN希音公司福利 325人发布