diff --git a/du3/program b/du3/program index d885a5f..86e0aff 100755 Binary files a/du3/program and b/du3/program differ diff --git a/du3/program.c b/du3/program.c index 267c6f9..a61c14c 100644 --- a/du3/program.c +++ b/du3/program.c @@ -9,9 +9,9 @@ int main(){ float r = scanf("%f", &value); if(r == 1){ vxod[i++] = value; - }else if(r == '\n') - continue; - else if(r <= 255 && r >= 0){ + }else if(r == '\n'){ + printf("Vysledok je: %.2f\n", vxod[i]); + }else if(r <= 255 && r >= 0){ if(i != 0) printf("Nepodarilo sa nacitat polynom na %d mieste.\n", i); else