diff --git a/du2/program.c b/du2/program.c index f81804b..54614db 100644 --- a/du2/program.c +++ b/du2/program.c @@ -34,15 +34,15 @@ int main() { double coef; double result = 0; - int coef_count = 0; + int coef_count = 2; while (1) { - int status = read_double(&coef, coef_count + 2); + int status = read_double(&coef, coef_count); if (status == -1) { return 0; } if (status == 0) { - if (coef_count == 0) { + if (coef_count == 2) { return 1; } break;