Vai al contenuto

Programmare con Pascal

Sezione di VALCON.IT

  • Home
  • Programmare
  • Problemi risolti
  • RISORSE

2007/08 – Fase scolastica – 03

16/10/2014 di admin

Si consideri la seguente funzione

Function ES3(x: Integer): Integer;
Begin
   If(x <= 1) Then
      ES3:=0
   Else
      ES3:=1+ES3(x Div 2);
End;

Dire cosa restituisce la chiamata ES3(10).

Risposte:

  1. 1
  2. 2
  3. 3
  4. nessuna delle precedenti.
Categorie OII - Fase Scolastica
2007/08 – Fase scolastica – 02
2007/08 – Fase scolastica – 04
  • Temporaneo
  • Decrescita programmata
  • Aritmetica: potenza
  • Aritmetica: prodotto
  • Aritmetica: somma
© 2025 Programmare con Pascal • Creato con GeneratePress