Răspuns:
ex1:
n = 12321
ogl = 0;
copie = 12321
ogl = 0 * 10 + 1
copie = 1232
----------------------------
ogl = 1 * 10 + 2
copie = 123
----------------------------
ogl = 12* 10 + 3
copie = 12
----------------------------
ogl = 123* 10 + 2
copie = 1
----------------------------
ogl = 1232* 10 + 1
ogl = 12321
copie = 0
----------------------------
ogl == n
12321 == 12321
true
afiseaza "Da"
Ex2
n = 123
ogl = 0;
copie = 123
ogl = 0 * 10 + 3
copie = 12
----------------------------
ogl = 3 * 10 + 2
copie = 1
----------------------------
ogl = 32* 10 + 1
copie = 0
----------------------------
ogl = 321
----------------------------
ogl == n
123 == 321
false
afiseaza "Nu"