Browse Source

changed the last else if in BasicMode.c to include the = char

remotes/origin/feature
Enrico Schellenberger 11 months ago
parent
commit
cc11e6eccd
  1. 7
      src/main/c/BasicMode.c

7
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 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 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++; i++;
} }
printf("The result is: %d", result);
} }
Loading…
Cancel
Save