From 5ebc3f0ca4bbf551dbeec828c3ffb2dd080077b4 Mon Sep 17 00:00:00 2001 From: nashokota Date: Sat, 20 Sep 2025 23:43:44 +0600 Subject: [PATCH 1/2] Feature 1 --- New Folder/class.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 New Folder/class.cpp diff --git a/New Folder/class.cpp b/New Folder/class.cpp new file mode 100644 index 0000000..26fcc17 --- /dev/null +++ b/New Folder/class.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; + + + +int main() +{ + cout << "Hello, World!" << endl; + cout << "feature one" << endl; + return 0; +} \ No newline at end of file From 8097dba894059802f8237ece97b6bead73309e47 Mon Sep 17 00:00:00 2001 From: nashokota Date: Sat, 20 Sep 2025 23:56:02 +0600 Subject: [PATCH 2/2] Modified Calculator Feature --- New Folder/calculator.cpp | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 New Folder/calculator.cpp diff --git a/New Folder/calculator.cpp b/New Folder/calculator.cpp new file mode 100644 index 0000000..825ae14 --- /dev/null +++ b/New Folder/calculator.cpp @@ -0,0 +1,43 @@ +#include +using namespace std; + +int add(int a, int b) +{ + return a + b; +} + +int subtract(int a, int b) +{ + return a - b; +} +int multiply(int a, int b) +{ + return a * b; +} +int divide(int a, int b) +{ + return a / b; +} +int calculator(int a, int b, int c) +{ + cout << "Calculator" << endl; + if(c==1){ + cout << "Addition: "; + cout << add(a,b) << endl; + }else if(c==2) + { cout << "Subtraction: "; + cout << subtract(a,b) << endl; + }else if(c==3) + { cout << "Multiplication: "; + cout << multiply(a,b) << endl; + }else if(c==4){ + cout << "Division: "; + cout << divide(a,b) << endl;} +} +int main() +{ + int a, b, c; + cin >> a >> b>>c; + calculator(a, b ,c); + return 0; +} \ No newline at end of file