From fb7c5d769d8d0a935441dcfd2057f385ec783432 Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Wed, 8 Apr 2020 06:32:47 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu5/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/du5/program.c b/du5/program.c index 64d8683..c336d48 100644 --- a/du5/program.c +++ b/du5/program.c @@ -98,8 +98,13 @@ int main(){ } } - printf("Vysledky:\n"); - for(int i = 0; i < newPos; i++){ - printf("%d %s\n", newScore[i], newName[i]); + if(pos == 0){ + printf("Nepodarilo nacitat nicn\n"); + } + else{ + printf("Vysledky:\n"); + for(int i = 0; i < newPos; i++){ + printf("%d %s\n", newScore[i], newName[i]); + } } } \ No newline at end of file