From 22419e4fc02d05ab9d0ca8b518485b8a4b0290d6 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Fri, 18 Mar 2022 11:59:56 +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 054cad1..daa7d2b 100644 --- a/du3/program.c +++ b/du3/program.c @@ -10,7 +10,10 @@ int main(){ if(r == 1){ vxod[i++] = value; }else if(r <= 255 && r >= 0){ - printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i); + if(i != 0) + printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i); + else + printf("Nepodarilo sa nacitat polynom na x mieste.\n"); break; } else{