+
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;
|
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() {
|
int main() {
|
||||||
double x = 0, b = 0, v = 0, c = 0;
|
double x = 0, b = 0, v = 0, c = 0;
|
||||||
double result = 0;
|
double result = 0;
|
||||||
@ -65,16 +57,10 @@ int main() {
|
|||||||
memset(input, '\0', sizeof(input));
|
memset(input, '\0', sizeof(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Uncomment to use vratenie2 function
|
// Calculate the result
|
||||||
/*
|
|
||||||
if (x != 0 && b != 0 && v != 0 && c != 0) {
|
|
||||||
result = vratenie2(x, b, v, c);
|
|
||||||
} else {
|
|
||||||
result = vratenie(x, b, v, c);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
result = vratenie(x, b, v, c);
|
result = vratenie(x, b, v, c);
|
||||||
|
|
||||||
|
// Print the result
|
||||||
printf("Vysledok je: %.2f\n", result);
|
printf("Vysledok je: %.2f\n", result);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user