Two boxes: a holds 3 and b holds 8. Swap them, so a becomes 8 and b becomes 3. The line that shows them is already written — only the middle steps are missing.
Careful: writing a = b; on its own throws away the 3 that was in a, and it is gone for good.
8 3
#include <iostream>
using namespace std;
int main() {
int a = 3;
int b = 8;
// your code here: swap the values of a and b
cout << a << " " << b << endl;
return 0;
}
Run tries the examples. When they look right, Submit.