Обновить du2/program.c
This commit is contained in:
parent
563a7af4f2
commit
62b5936b83
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user