Si considerino le funzioni mutuamente ricorsive
Function foo(n: Integer): Integer; Forward; Function ES9(n: Integer): Integer; begin If(n mod 2 = 1) Then ES9:=foo(n-3) Else ES9:=n; End; Function foo(n: Integer): Integer; Begin If(n Mod 2 = 0) Then foo:=ES9(2*n) Else foo:=n; End;
Dire cosa restituisce la chiamata ES9(51).
Risposte:
- 48
- 96
- 102
- nessuna delle precedenti