From c0c69ba4f04a2a9d2847dca16aa8e70ad40ee705 Mon Sep 17 00:00:00 2001 From: Miloslav Macko Date: Thu, 7 Mar 2024 22:17:10 +0100 Subject: [PATCH] + --- cv3/program.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 4b29f18..79bc3d1 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -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; -} +} \ No newline at end of file