From a9b0958d0930ec22e14ad2f1ab741eb2411d466b Mon Sep 17 00:00:00 2001 From: adaviraju <55879086+adaviraju@users.noreply.github.com> Date: Thu, 17 Oct 2019 19:16:45 +0530 Subject: [PATCH] Create operation.cpp --- operation.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 operation.cpp diff --git a/operation.cpp b/operation.cpp new file mode 100644 index 0000000..4a28b3b --- /dev/null +++ b/operation.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; +inat main() +{ + int a,n; + cin >> a >> n; + + if(a==1) + { + a=a+a; + cout << a; + } + else if(a==2) + { + a=a-a; + cout << a; + } +}