diff --git a/a1/program.c b/a1/program.c index cdddc3f..47164a2 100644 --- a/a1/program.c +++ b/a1/program.c @@ -28,7 +28,7 @@ int main() { } // Parse the line - sscanf(line, "%lf%c%lf=%lf", &num1, &op, &num2, &expected_result); + sscanf(line, "%lf%c%lf=%.2lf", &num1, &op, &num2, &expected_result); // Check if the input is valid if (op != '+' && op != '-' && op != '*' && op != '/') {