Tema 3 Info

You might also like

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 2

Citeste x

Cat_timp x != o
Max0
YX
Cat_timp y>0
Cy mod 10
Daca C>max
Atunci maxC
y y div 10
sf_daca
sf_cat_timp
Citeste X
Sf_cat_timp
Scrie max

Citeste x,n
nr0
Cat_timp n !=0
Yx
C0
Cat_timp n!=0
ay mod 10
cc*10+a
yy div 10
cy
sf_cat_timp
daca c=n
atunci nrnr+1
sf_daca
xn
Citeste n
Sf_cat_timp
Scrie nr

A.n=27596
B. 72 52 10 0

You might also like