Aktualizovat „du6/program.c“
This commit is contained in:
parent
81e69debe7
commit
686ef90392
@ -79,7 +79,7 @@ int main(){
|
||||
|
||||
//Print names
|
||||
if(newLines <= lines){
|
||||
puts("Prijati studenti:");
|
||||
puts("Prijati studenti:\n");
|
||||
for(int i = 0; i < newLines; i++){
|
||||
printf("%s\n", newNames[i]);
|
||||
}
|
||||
@ -88,11 +88,11 @@ int main(){
|
||||
}
|
||||
}
|
||||
else{
|
||||
printf("Prijati studenti:");
|
||||
printf("Prijati studenti:\n");
|
||||
for(int i = 0; i <= lines; i++){
|
||||
printf("%s\n", newNames[i]);
|
||||
}
|
||||
puts("Neprijati studenti:");
|
||||
puts("Neprijati studenti:\n");
|
||||
for(int i = lines + 1; i < newLines; i++){
|
||||
printf("%s\n", newNames[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user