|
@ -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); |
|
|
|
|
|
} |
|
|
} |