From 1dc23191b3574a69220283cd71021f0296a52b75 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 11:55:37 +0100 Subject: [PATCH] DSA --- du3/program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index c852917..b9e0834 100644 --- a/du3/program.c +++ b/du3/program.c @@ -9,7 +9,10 @@ int main(){ float r = scanf("%f", &value); if(r == 1){ vxod[i++] = value; - }else{ + }else if(r <= 255 && r >= 0){ + printf("Nepodarilo␣sa␣nacitat␣polynom␣na␣2␣mieste.\n"); + } + else{ for(int a = 1; a < i; a++) result = vxod[0] * result + vxod[a]; printf("Vysledok je: %.2f\n", result);