From 1e711d6c49a1bf9acd3cb982deb4a698808bbb3c Mon Sep 17 00:00:00 2001 From: Maunj Sharma Date: Sun, 8 Dec 2019 14:22:16 +0530 Subject: [PATCH 1/3] 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/3] 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/3] 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