From 63f5be19142ae1919eb1edf2e26fbb37064c7c6c Mon Sep 17 00:00:00 2001 From: Michal Utlak Date: Tue, 5 Mar 2024 19:08:17 +0100 Subject: [PATCH] base x error fix --- cv3/program.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index b451ec3..8ec7b1d 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -16,7 +16,11 @@ int main() { opakovania++; } else if (skenovanie == EOF) { if (zla_hodnota) { - printf("Nepodarilo sa nacitat polynom na %d mieste.\n", zly_index); + if (zly_index == 0) { + printf("Nepodarilo sa nacitat zaklad x.\n"); + } else { + printf("Nepodarilo sa nacitat polynom na %d mieste.\n", zly_index); + } return 0; } else { break;