This commit is contained in:
Andrii Hutsuliak 2025-03-01 12:47:34 +01:00
parent 76a3345cde
commit cd157124c5

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdbool.h>
#include <math.h>
bool is_operation(char op) {
return op == '+' || op == '-' || op == '*' || op == '/';
@ -35,6 +36,9 @@ int main() {
result = firstNumber / secondNumber;
}
}
result = roundf(result * 100) / 100;
if (ans == result) {
printf("OK\n");
} else {