This commit is contained in:
Macko 2024-03-07 22:17:10 +01:00
parent 2e0833f4ba
commit c0c69ba4f0

View File

@ -8,14 +8,6 @@ double vratenie(double x, double b, double v, double c) {
return result;
}
// Uncomment if you intend to use this function
/*
double vratenie2(double x, double b, double v, double c) {
double result = (b * (x * x)) + (v * x) + c;
return result;
}
*/
int main() {
double x = 0, b = 0, v = 0, c = 0;
double result = 0;
@ -65,17 +57,11 @@ int main() {
memset(input, '\0', sizeof(input));
}
// Uncomment to use vratenie2 function
/*
if (x != 0 && b != 0 && v != 0 && c != 0) {
result = vratenie2(x, b, v, c);
} else {
result = vratenie(x, b, v, c);
}
*/
// Calculate the result
result = vratenie(x, b, v, c);
// Print the result
printf("Vysledok je: %.2f\n", result);
return 0;
}
}