Una funzione è un sottoprogramma che riceve valori come argomenti in ingresso e restituisce un valore come risultato.