From 550fe3158208681bb3dbc17f156b1f3ae206e45c Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Thu, 1 Feb 2024 21:07:36 +0000 Subject: [PATCH] Added programming mode without functionality --- src/main/c/main_taschenrechner.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/c/main_taschenrechner.c b/src/main/c/main_taschenrechner.c index 7645288..574ad40 100644 --- a/src/main/c/main_taschenrechner.c +++ b/src/main/c/main_taschenrechner.c @@ -82,6 +82,24 @@ void graphMode() { } } +// Programming mode + +void programmingMode() { + + int num1, num2, result; + char operator; + + printf("Enter first integer: "); + scanf("%d", &num1); + + printf("Enter operator (+, -, *, /): "); + scanf(" %c", &operator); + + printf("Enter second integer: "); + scanf("%d", &num2); + +} + // change mode int mode(int userChoice){