Answers for "swap 2 nos. function c++"

C++
0

swap of two numbers in c++

#include<iostream>
using namespace std;
int main()
{
    
    int a,b;
    cin>>a>>b;
    swap(a,b);
    cout<<a<<" "<<b;
    return 0;
}
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language