+
This commit is contained in:
parent
2e0833f4ba
commit
c0c69ba4f0
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user