Compare commits

...

2 Commits

Author SHA1 Message Date
Yaroslav Orlianskyi
56fc32fdf9 DSA 2022-03-18 11:56:39 +01:00
Yaroslav Orlianskyi
1dc23191b3 DSA 2022-03-18 11:55:37 +01:00
2 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -9,7 +9,11 @@ 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");
break;
}
else{
for(int a = 1; a < i; a++)
result = vxod[0] * result + vxod[a];
printf("Vysledok je: %.2f\n", result);