From a6487f89df263b43acd1e3eaf13bb9dc01796a06 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 12:02:46 +0100 Subject: [PATCH] DSA --- du3/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index 40258f4..267c6f9 100644 --- a/du3/program.c +++ b/du3/program.c @@ -9,7 +9,9 @@ int main(){ float r = scanf("%f", &value); if(r == 1){ vxod[i++] = value; - }else if(r <= 255 && r >= 0){ + }else if(r == '\n') + continue; + else if(r <= 255 && r >= 0){ if(i != 0) printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i); else