From 13f6bf6a3432edbb9e702c79aaa81fef5d60c351 Mon Sep 17 00:00:00 2001 From: templesteps <55879440+templesteps@users.noreply.github.com> Date: Thu, 17 Oct 2019 18:51:42 +0530 Subject: [PATCH] Create swap.cpp --- swap.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 swap.cpp diff --git a/swap.cpp b/swap.cpp new file mode 100644 index 0000000..73e21f1 --- /dev/null +++ b/swap.cpp @@ -0,0 +1,13 @@ +#include +using namespace std; +int main() +{ + int a,b,c; + cin >> a >> b >> c; + + c=a; + a=b; + b=c; + + cout << a << b; +}