cv3
This commit is contained in:
parent
321bc94ac0
commit
740d05bf27
@ -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);
|
||||
}
|
||||
}
|
||||
|
BIN
cv3/program.exe
BIN
cv3/program.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user