From 5623940aaf94a282ba2a6ddd74a6742cb39c69a8 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 14:19:39 +0100 Subject: [PATCH] WQE --- du3/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/du3/program.c b/du3/program.c index ce805d3..7a94af1 100644 --- a/du3/program.c +++ b/du3/program.c @@ -10,7 +10,7 @@ int main(){ double result = 0; int a = i; for(int i = 0; i < size; i++){ - char* r = fgets(buffer,SIZE,stdin); + char* r = fgets(riadok,SIZE,stdin); if(*r != '\n'){ if(*r >= 0 && *r <= 255){ if(i == 0){ @@ -21,8 +21,8 @@ int main(){ return 0; } } - double v = strtod(buffer,&endptr); - k[i] = v; + double v = strtod(riadok,&endptr); + vxod[i] = v; a = i; }else break;