Изменить 'du6/program.c'
This commit is contained in:
parent
4303dbfaf8
commit
27b8394a47
@ -53,14 +53,13 @@ int main(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf("Prijati studenti:\n");
|
printf("Prijati studenti:\n");
|
||||||
for(int i = 1; i <= finalPosition+1; i++) {
|
for(int i = 1; i <= freePlaces; i++) {
|
||||||
if(isalpha(inputs[i][0])){
|
if(isalpha(inputs[i][0])){
|
||||||
printf ("%s", inputs[i]);
|
printf ("%s", inputs[i]);
|
||||||
}
|
}
|
||||||
if(i == 5) break;
|
|
||||||
}
|
}
|
||||||
if(6 < finalPosition) printf("Neprijati studenti:\n");
|
if(freePlaces < finalPosition) printf("Neprijati studenti:\n");
|
||||||
for(int i = 6; i <= finalPosition; i++){
|
for(int i = freePlaces; i <= finalPosition; i++){
|
||||||
if(isalpha(inputs[i][0])){
|
if(isalpha(inputs[i][0])){
|
||||||
printf("%s", inputs[i]);
|
printf("%s", inputs[i]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user