Documente Academic
Documente Profesional
Documente Cultură
ALGORITMILOR
IN PSEUDOCOD
a) b)
Inceput algoritm 1 Inceput algoritm 2
Citeste x Citeste x
Citeste y y=x
Z=(x+y)/2 Citeste x
Scrie z y=(x+y)/2
Sfarsit algoritm 1 Scrie y
Sfarsit algoritm 2
x y z x y
Inceput algoritm
citeste x x y
x= x+ 10
x=x mod 5
y=x
scrie x
scrie y
sfarsit algoritm
Spatiu de lucru
Inceput algoritm
6. Analizati urmatorul algoritm citeste x
pentru x = 10 si y = 3: citeste y
x=y
z=y+x
scrie x, y, z
sfarsit algoritm