diff --git a/swap,cpp.cpp b/swap,cpp.cpp deleted file mode 100644 index fe6c824..0000000 --- a/swap,cpp.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -using namespace std; -int main() -{ - int a,b; - cin>>a>>b; - a=a+b; - b=a-b; - a=a-b; - cout< +using namespace std; +void method1(int a,int b){ + a=a+b; + b=a-b; + a=a-b; + cout<<"value of a and b after swapping is: "<>a>>b; +//Using Arithmetic Operators + method1(a,b); + method2(a,b); +//Using Bitwise XOR + method3(a,b); + return 0; + + +}