From 7450e9e15e9fdf0e4f5a11d91bbbe2a00e1d21c7 Mon Sep 17 00:00:00 2001 From: Abhiraj Singh Bhadoria <116302275+Abhirajxoo@users.noreply.github.com> Date: Sat, 29 Oct 2022 22:00:39 +0530 Subject: [PATCH] HACKTOBER FEST 2022 HEY SIR PLZ ADD MY FILE TO YOUR REPO. THANK YOU --- First.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 First.cpp diff --git a/First.cpp b/First.cpp new file mode 100644 index 0000000..b7885d9 --- /dev/null +++ b/First.cpp @@ -0,0 +1,19 @@ +#include +using namespace std; + +int main() +{ + int a = 5, b = 10, temp; + + cout << "Before swapping." << endl; + cout << "a = " << a << ", b = " << b << endl; + + temp = a; + a = b; + b = temp; + + cout << "\nAfter swapping." << endl; + cout << "a = " << a << ", b = " << b << endl; + + return 1; +} \ No newline at end of file