Untitled
Anonymous
plain_text
11/15/2022 11:02 PM
304 B
19
Indexable
cout<<"Sortirani niz je: "<<endl;
for(int i =0; i<kuglice; i++){
cout<<niz[i]<<endl;
}
sort(niz, niz+kuglice, greater<int>());
cout<<"Sortirani niz je: "<<endl;
for(int i =0; i<kuglice; i++){
cout<<niz[i]<<endl;
}
}Editor is loading...