From 02a16d6cc95298710b8d29e88abf0beb70433959 Mon Sep 17 00:00:00 2001 From: Rishabh Sethi <54479777+i-am-expert@users.noreply.github.com> Date: Wed, 2 Oct 2019 15:33:05 +0530 Subject: [PATCH] Added some more operations. --- C++/04_cppBeginners.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/C++/04_cppBeginners.cpp b/C++/04_cppBeginners.cpp index 2831d32..b968153 100644 --- a/C++/04_cppBeginners.cpp +++ b/C++/04_cppBeginners.cpp @@ -10,7 +10,14 @@ int main() int b = 21; int sum = a + b; + int difference = a - b; + int product = a * b; + int xor_of_2_numbers = a ^ b; + + cout << sum << endl; + cout << difference << endl; + cout << product << endl; + cout << xor_of_2_numbers << endl; - cout << sum; return 0; -} \ No newline at end of file +}