diff --git a/du3/program.c b/du3/program.c index c852917..b9e0834 100644 --- a/du3/program.c +++ b/du3/program.c @@ -9,7 +9,10 @@ int main(){ float r = scanf("%f", &value); if(r == 1){ vxod[i++] = value; - }else{ + }else if(r <= 255 && r >= 0){ + printf("Nepodarilo␣sa␣nacitat␣polynom␣na␣2␣mieste.\n"); + } + else{ for(int a = 1; a < i; a++) result = vxod[0] * result + vxod[a]; printf("Vysledok je: %.2f\n", result);