Hello friends!!!!!

Swapping of two numbers inc++

C++

10/19/20241 min read

#include <iostream>

using namespace std;

int main() {

int a=1,b=3;

int c;

c=a;

a=b;

b=c;

cout<<"After swapping "<<a<<" & "<<b<<endl;

return 0;

}

Output:

After swapping 3 & 1

=== Code Execution Successful ===