This commit is contained in:
Matus Tokarcik 2024-03-07 11:57:31 +01:00
parent 321bc94ac0
commit 740d05bf27
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}

Binary file not shown.