du2
This commit is contained in:
parent
04f0e849eb
commit
ca66a5d8da
@ -27,7 +27,11 @@ int main(){
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
while(read_double(&coef)){
|
while (1){
|
||||||
|
if(!read_double(&coef)){
|
||||||
|
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", coef_index + 1);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
if(coef_index == 0){
|
if(coef_index == 0){
|
||||||
result = coef;
|
result = coef;
|
||||||
}else{
|
}else{
|
||||||
@ -41,6 +45,6 @@ int main(){
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Vysledok je: %.2f\n", round(result * 100) / 100);
|
printf("Vysledok je: %.2f\n", result);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user