Answers for "swap two values using function in c++ and then display in main"

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

Code answers related to "swap two values using function in c++ and then display in main"

Browse Popular Code Answers by Language