This commit is contained in:
kr820js 2024-03-03 16:55:13 +01:00
parent a6704d3f59
commit 8a83e51cf5

View File

@ -26,8 +26,7 @@ int main()
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);
}
printf("Vysledok je: %.2f\n", result_of_main);
printf("Vysledok je: %.2f\n",round(result_of_main * 100) / 100);
return 0;
}
int reading_input(float *number){