Si consideri la seguente funzione
Function ES4(x: Integer): Integer; Begin If(x Div 10 = 0) Then ES4:=x Else ES4:=x Mod 10+ES4(x Div 10); End;
Dire cosa restituisce l’invocazione ES4(ES4(731)).
Risposte:
- 2
- 9
- 36
- nessuna delle precedenti
Sezione di VALCON.IT
Si consideri la seguente funzione
Function ES4(x: Integer): Integer; Begin If(x Div 10 = 0) Then ES4:=x Else ES4:=x Mod 10+ES4(x Div 10); End;
Dire cosa restituisce l’invocazione ES4(ES4(731)).
Risposte: