Si consideri la seguente funzione:
Function funzione(): Integer; Var contatore: Integer; sum : Integer; Begin contatore:=0; sum :=0; While(contatore <= 4) Do Begin contatore:=contatore+1; sum :=sum+contatore; End; funzione:=sum; End;
Quale valore restituisce la funzione?
Risposte:
- 10
- 15
- 16
- Nessuna delle risposte precedenti.