diff --git a/cv3/program.c b/cv3/program.c index ccd9d70..d3974a3 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -41,9 +41,11 @@ int main() { int stupen = 0; double vysledok = 0.00; int idx = 0; + int pocitadlo = 0; while (1){ char* b = fgets(Ppole,POLE,stdin); + pocitadlo++; if (Ppole[0] == '\n'){ //ked pride na enter break; @@ -54,7 +56,7 @@ int main() { continue; } if (isdigit(Ppole[i]) == 0){ - printf ("Nepodarilo sa nacitat polynom na %d mieste.\n", i); + printf ("Nepodarilo sa nacitat polynom na %d mieste.\n", pocitadlo); exit(0); } } diff --git a/cv3/program.exe b/cv3/program.exe index 7f2e7d3..b77766a 100644 Binary files a/cv3/program.exe and b/cv3/program.exe differ