From 16df69ddaac8f5860c48e16a2772870f9a011791 Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Wed, 8 Apr 2020 16:32:21 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu6/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du6/program.c b/du6/program.c index 64ba00c..92c5ffb 100644 --- a/du6/program.c +++ b/du6/program.c @@ -97,11 +97,11 @@ int main(){ } else{ printf("Prijati studenti:%s", string); - for(int i = 0; i <= lines; i++){ + for(int i = 0; i < lines + test; i++){ printf("%s\n", newNames[i]); } puts("Neprijati studenti:"); - for(int i = lines + 1; i < newLines; i++){ + for(int i = lines + test; i < newLines; i++){ printf("%s\n", newNames[i]); } }