RO Study
👤
Sambler
Sambler
05-02-2018
Informatică
a fost răspuns
Ajutor pentru a face o lucrare practică
Răspuns :
Аноним
Аноним
05-02-2018
Varianta recursiva :
function suma(n : integer) : integer;
begin if n = 1 then suma:= 1
else suma:= suma(n-1) + n
end
;
Varianta fara recursivitate :
var
n:integer
i:integer
suma:integer
for i := 0 to n do suma=suma+i ;
Write (suma);
Answer Link
VEDEȚI TOATE RĂSPUNSURILE ( 33+ )
Facebook
Twitter
LinkedIn
WhatsApp
Alte intrebari
Cum Pot Proteja Obiectele Din Fier De Ruguna?
Ce Este Substantivul ?
Ce Este Fecundatia Nju Am Inteles
1+1+1 -1+1000x0x88588
1+1+1 -1+1000x0x88588
1+1+1 -1+1000x0x88588
Ce Este Fecundatia Nju Am Inteles
Ce Este Substantivul ?
Ce Este Substantivul ?
Cum Pot Proteja Obiectele Din Fier De Ruguna?