From d056e7850e97aff35c82bdf731f50835a4a53ee9 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 17 Mar 2022 16:37:12 +0100 Subject: [PATCH] SAD --- du3/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);