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