Cosa stampa il seguente programma, con input 5?
Program cosa(Input, Output); Var x : Integer; y, z: Real; Begin x:=0; y:=0; Read(z); Repeat x:=x+1; y:=y+1/x; Until y > z; Write(x) End.
Risposte:
- 5
- 12
- 25
- nessuna delle precedenti.
Sezione di VALCON.IT
Cosa stampa il seguente programma, con input 5?
Program cosa(Input, Output); Var x : Integer; y, z: Real; Begin x:=0; y:=0; Read(z); Repeat x:=x+1; y:=y+1/x; Until y > z; Write(x) End.
Risposte: