|
@ -3,7 +3,7 @@ |
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
#include <math.h> |
|
|
#include <math.h> |
|
|
|
|
|
|
|
|
#include "taschenrechner.h" |
|
|
|
|
|
|
|
|
#include "calculator.h" |
|
|
|
|
|
|
|
|
// get the NUmbers from the user |
|
|
// get the NUmbers from the user |
|
|
int getIntegerInput(const char* prompt) { |
|
|
int getIntegerInput(const char* prompt) { |
|
@ -52,4 +52,4 @@ void programmingMode() { |
|
|
// Calculation + Display the result |
|
|
// Calculation + Display the result |
|
|
|
|
|
|
|
|
printf("Result: %d\n", performOperation(num1, operator, num2)); |
|
|
printf("Result: %d\n", performOperation(num1, operator, num2)); |
|
|
} |
|
|
|
|
|
|
|
|
} |