diff --git a/src/main/c/BasicMode.c b/src/main/c/BasicMode.c index f68a11a..cfb5ded 100644 --- a/src/main/c/BasicMode.c +++ b/src/main/c/BasicMode.c @@ -48,7 +48,12 @@ void BasicMode() { else if (i<=1 && operator[i] == '=') { //if there are less then 2 numbers in the array result = numbers[i]; //set result to the 0 digit } + + else if (operator[i] == '=') { //if char is = + printf("The result is: %d", result); //print out the result + i = 100; + break; + } i++; } - printf("The result is: %d", result); }