From 2039112b1676dfba69481024f4095f1d6f54b20b Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 18:21:28 +0100 Subject: [PATCH] Added main function ability executing first part of calculator features --- src/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main.c b/src/main.c index 86d4137..4f4b2b5 100644 --- a/src/main.c +++ b/src/main.c @@ -1,4 +1,17 @@ #include +#include +#include "operationHandler.h" + +char buffer[100]; int main() { + printf("Please enter the id of a specific operation...\n1. addition\n2. subtraction\n3. multiplication\n4. division\n"); + int input; + scanf("%d", &input); + if(!checkOperationInput(input)) { + printf("Invalid operation id\n"); + return 0; + } + printf("\nPlease enter the first and the second number separated by a space...\n"); + } \ No newline at end of file