From 4f08259a05ef5c32adca28dcd4295f51529dc48d Mon Sep 17 00:00:00 2001 From: Kozar Date: Wed, 2 Oct 2024 17:32:07 +0000 Subject: [PATCH] Initializacia --- cv1/program.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 86ab3b1..2240865 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -94,8 +94,13 @@ int main() { } } - if (found_count == 0) { - printf("\n"); + if (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++; + } + } } printf("Nacitanych %d poloziek.\n", count);