DSA
This commit is contained in:
parent
4f0fdefc55
commit
1dc23191b3
@ -9,7 +9,10 @@ int main(){
|
|||||||
float r = scanf("%f", &value);
|
float r = scanf("%f", &value);
|
||||||
if(r == 1){
|
if(r == 1){
|
||||||
vxod[i++] = value;
|
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++)
|
for(int a = 1; a < i; a++)
|
||||||
result = vxod[0] * result + vxod[a];
|
result = vxod[0] * result + vxod[a];
|
||||||
printf("Vysledok je: %.2f\n", result);
|
printf("Vysledok je: %.2f\n", result);
|
||||||
|
Loading…
Reference in New Issue
Block a user