From a0c44c5d0dc50822161b47caefe24fbb61a8afdd Mon Sep 17 00:00:00 2001 From: sangeun Date: Wed, 3 Apr 2024 20:49:12 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=EB=B9=BC=EA=B8=B0=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calculator.c b/calculator.c index 832dfd2..65cfb3a 100644 --- a/calculator.c +++ b/calculator.c @@ -4,8 +4,9 @@ void add(int a, int b) { printf("a + b = %d\n", a + b); } -void sub() +void sub(int a, int b) { + printf("a - b = %d\n",a - b); } void mul() { From 735e94fe6932017cec99732f5c3e857ea4b7d9d5 Mon Sep 17 00:00:00 2001 From: sangeun Date: Wed, 3 Apr 2024 20:50:48 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat=20:=20=EB=B9=BC=EA=B8=B0=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.c b/calculator.c index 65cfb3a..a8bfda7 100644 --- a/calculator.c +++ b/calculator.c @@ -6,7 +6,7 @@ void add(int a, int b) } void sub(int a, int b) { - printf("a - b = %d\n",a - b); + printf("a - b = %d\n",a-b); } void mul() {