From 43922459dc795f137ec4cd7cd241795275bccb90 Mon Sep 17 00:00:00 2001 From: Kozar Date: Wed, 2 Oct 2024 17:33:56 +0000 Subject: [PATCH] Initializacia --- cv1/program.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 2240865..b45f7ef 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -87,14 +87,8 @@ int main() { } int found_count = 0; - for (int i = 0; i < count; i++) { - if (contains_normalized(menu[i].name, search)) { - printf("%s\n%.2f\n", menu[i].name, menu[i].price); - found_count++; - } - } - if (found_count > 0) { + printf("\nVysledky vyhladavania:\n"); for (int i = 0; i < count; i++) { if (contains_normalized(menu[i].name, search)) { printf("%s\n%.2f\n", menu[i].name, menu[i].price);