This commit is contained in:
Yaroslav Orlianskyi 2022-03-18 11:55:37 +01:00
parent 4f0fdefc55
commit 1dc23191b3

View File

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