Оновити 'cv3/program.c'

This commit is contained in:
Kapliuk 2024-03-06 20:56:00 +00:00
parent 56f7c58a19
commit 103815e3e9

View File

@ -15,7 +15,7 @@ int main(){
y1 = *y; y1 = *y;
if(y1 >= 'A' && line[0] != '\n'){ if(y1 >= 'A' && line[0] != '\n'){
printf("Nepodarilo sa nacitat zaklad x\n"); printf("Nepodarilo sa nacitat zaklad x\n");
return 1; return 0;
} }
while(line[0] != '\n'){ while(line[0] != '\n'){
cfIdx++; cfIdx++;
@ -28,7 +28,7 @@ int main(){
} }
if(chcf1 >='A' && line[0] != '\n'){ if(chcf1 >='A' && line[0] != '\n'){
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", cfIdx); printf("Nepodarilo sa nacitat polynom na %d mieste.\n", cfIdx);
return 1; return 0;
} }
} }
printf("Vysledok je: %.2f\n", result); printf("Vysledok je: %.2f\n", result);