From ad549fcc1cb5ee31044eaa6d3f01b5d72ee3b294 Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Tue, 7 Apr 2020 15:52:59 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 4ddbb8c..e5b6795 100644 --- a/du5/program.c +++ b/du5/program.c @@ -9,7 +9,7 @@ int main(){ int score[50]; int pos = 0; //Getting input - while(1){ + for(int i = 0; i < 50; i++){ if( poll(&mypoll, 1, 2000)){ scanf("%d %[^\n]", &score[pos], name[pos]); scanf("%*c");