Salve a tutti. Ho un problemone.

Come faccio ad estrarre da un array i tre valori più alti?

Mi spiego meglio con un esempio:


lunghezza[5] = {3,6,4,8,0};

OUTPUT:

Valore al 1 posto: 8
Valore al 2 posto: 6
Valore al 3 posto: 4




GRAZIEEEE