From 445e078c606b8e09f7434b5cc3abfd86831e13ac Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 19:45:25 +0100 Subject: [PATCH] user input --- src/main/c/Calculator/calculator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index a8c776a..c3dff44 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -11,4 +11,6 @@ int main() { int choice, num1, num2, result; do { - displayMenu(); \ No newline at end of file + displayMenu(); + printf("Enter your choice: "); + scanf("%d", &choice);