submit7
This commit is contained in:
parent
4fa9824e0c
commit
464f76d4e1
@ -26,7 +26,7 @@ int main()
|
|||||||
for(int j=1; j<counter; j++){
|
for(int j=1; j<counter; j++){
|
||||||
result_of_main=result_of_main+array_of_numbers[j]*pow(array_of_numbers[0],(counter-j)-1);
|
result_of_main=result_of_main+array_of_numbers[j]*pow(array_of_numbers[0],(counter-j)-1);
|
||||||
}
|
}
|
||||||
printf("Vysledok je: %.2f\n",ceil(result_of_main * 100) / 100);
|
printf("Vysledok je: %.2f\n",round(result_of_main * 100) / 100);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int reading_input(float *number){
|
int reading_input(float *number){
|
||||||
|
Loading…
Reference in New Issue
Block a user