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{