From 062bdc8be0f9e9963b3b18babd03ce6f8d8e6a46 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 21:35:15 +0100 Subject: [PATCH] Updated input handler return value for '*' and added division --- src/inputHandler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inputHandler.c b/src/inputHandler.c index da56212..0001469 100644 --- a/src/inputHandler.c +++ b/src/inputHandler.c @@ -7,8 +7,10 @@ int getOperationId(char symbol) { return 1; case '-': return 2; - case '*': + case '/': return 3; + case '*': + return 4; } return id; } \ No newline at end of file