Curs 3 - Agenda - Profs.info.uaic.ro
Curs 3 - Agenda - Profs.info.uaic.ro
Curs 3 - Agenda - Profs.info.uaic.ro
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Functii recursive: conversie binara<br />
p<strong>ro</strong>cedure convert(x)<br />
1.if (x != 0)<br />
2.then convert(x/2)<br />
3. print(x % 2)<br />
}<br />
convert(12)<br />
convert(6)<br />
convert(3)<br />
1100<br />
110<br />
11<br />
0<br />
1 3<br />
3 3<br />
6 3<br />
12 3<br />
x adr.retur<br />
convert(1)<br />
convert(0)<br />
1<br />
─<br />
Dorel Lucanu<br />
Algoritmica si p<strong>ro</strong>gramare<br />
stiva<br />
arborele apelurilor