From 63872da4b9ee183338b9f88382e698b0d2b04c8b Mon Sep 17 00:00:00 2001 From: Sudhanshukalekinge-debugs Date: Sun, 7 Dec 2025 18:27:42 +0530 Subject: [PATCH 1/2] Q3 1 --- IEC2025013/calculator.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 IEC2025013/calculator.txt diff --git a/IEC2025013/calculator.txt b/IEC2025013/calculator.txt new file mode 100644 index 0000000..3198159 --- /dev/null +++ b/IEC2025013/calculator.txt @@ -0,0 +1,3 @@ +What is a Calculator? + +ans) Calculator is an electronic device used to calculate many mathematical tasks. From 9c6e0cedfff45f301db0b47b739da4c427b36120 Mon Sep 17 00:00:00 2001 From: Sudhanshukalekinge-debugs Date: Sun, 7 Dec 2025 18:39:27 +0530 Subject: [PATCH 2/2] Q2 --- IEC2025013/calculator.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 IEC2025013/calculator.cpp diff --git a/IEC2025013/calculator.cpp b/IEC2025013/calculator.cpp new file mode 100644 index 0000000..f704e76 --- /dev/null +++ b/IEC2025013/calculator.cpp @@ -0,0 +1,32 @@ +#include +using namespace std; + +int main(){ + +int sign; +cout << "Tell us which command you want to perform\n 1) 1 for addition\n 2) 2 for subtraction\n 3) 3 for division\n 4) 4 for multiplication" <> sign; + +int a,b; +cout << "Enter your 2 numbers which are involved: "; +cin >> a>>b; + +if(sign == 1){ + cout << a+b << endl; +} +else if(sign == 2){ + cout << a-b << endl; +} +else if(sign == 3){ + cout << a/b << endl; +} +else if( sign == 4){ + cout << a*b << endl; +} +else{ + cout << "You didn't enter a valid input"<