diff --git a/du3/program.c b/du3/program.c index 8191a28..757a585 100644 --- a/du3/program.c +++ b/du3/program.c @@ -22,8 +22,7 @@ int main(){ } } double v = strtod(riadok,&endptr); - vxod[i] = v; - a = i; + vxod[a++] = v; }else break; }