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){