0
Exchange the value a=19 and b=80.
Please help me
2 Respuestas
+ 5
#include <iostream>
#include <tuple>
using namespace std;
int main() {
int a = 10, b = 20;
tie(a, b) = make_tuple(b, a);
cout<< "Swapping values : a = " << a <<endl
<< "b = " << b;
return 0;
}
0
int x = b;
b = a;
a = x ;