diff --git a/du3/program.c b/du3/program.c index e514d07..512b117 100644 --- a/du3/program.c +++ b/du3/program.c @@ -11,8 +11,9 @@ int main(){ a = i; } value = 0; + results = vxod[0]; do{ - result = vxod[0] * vxod[value] + 1; + result = results * vxod[value] + 1; value++; }while(value < a); printf("%d\n", result);