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");