From 1e711d6c49a1bf9acd3cb982deb4a698808bbb3c Mon Sep 17 00:00:00 2001 From: Maunj Sharma Date: Sun, 8 Dec 2019 14:22:16 +0530 Subject: [PATCH 1/4] addedcalculator file --- calculator.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 calculator.txt diff --git a/calculator.txt b/calculator.txt new file mode 100644 index 0000000..8bcfeb7 --- /dev/null +++ b/calculator.txt @@ -0,0 +1,5 @@ +line 1 + +def add(a,b){ + return a+b; +} \ No newline at end of file From 3d9df5a21f208fc96b679cf5d1685ff3640d19e4 Mon Sep 17 00:00:00 2001 From: Maunj Sharma Date: Sun, 8 Dec 2019 14:46:56 +0530 Subject: [PATCH 2/4] subtract method --- calculator.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calculator.txt b/calculator.txt index 8bcfeb7..acaf561 100644 --- a/calculator.txt +++ b/calculator.txt @@ -2,4 +2,8 @@ line 1 def add(a,b){ return a+b; +} + +def sub(a,b){ + return a-b; } \ No newline at end of file From dda1c883c715ea77de36367f38f1a16fb1e136c2 Mon Sep 17 00:00:00 2001 From: Maunj Sharma Date: Sun, 8 Dec 2019 20:16:35 +0530 Subject: [PATCH 3/4] added multiply --- calculator.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calculator.txt b/calculator.txt index acaf561..72a00cc 100644 --- a/calculator.txt +++ b/calculator.txt @@ -6,4 +6,8 @@ def add(a,b){ def sub(a,b){ return a-b; +} + +def multiply(a,b){ + return a*b; } \ No newline at end of file From e325bceb7715c2646443a9923d2b98b1b8330933 Mon Sep 17 00:00:00 2001 From: Maunj Sharma Date: Sun, 8 Dec 2019 20:48:03 +0530 Subject: [PATCH 4/4] added divide --- calculator.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calculator.txt b/calculator.txt index 72a00cc..5805038 100644 --- a/calculator.txt +++ b/calculator.txt @@ -10,4 +10,8 @@ def sub(a,b){ def multiply(a,b){ return a*b; +} + +def divide (a,b){ + return a/b; } \ No newline at end of file