1211
This commit is contained in:
parent
c57ab4e5bd
commit
6193855475
@ -42,10 +42,8 @@ int main() {
|
|||||||
|
|
||||||
// Výpis prijatých a neprijatých študentov
|
// Výpis prijatých a neprijatých študentov
|
||||||
int max_students;
|
int max_students;
|
||||||
if (scanf("%d\n", &max_students) != 1) {
|
fgets(line, SIZE, stdin);
|
||||||
fprintf(stderr, "Error reading the maximum number of students\n");
|
sscanf(line, "%d", &max_students);
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("Prijati studenti:\n");
|
printf("Prijati studenti:\n");
|
||||||
for (int i = 0; i < max_students && i < pocet_mien_v_poli; i++) {
|
for (int i = 0; i < max_students && i < pocet_mien_v_poli; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user