2. Fie x, y și z trei variabile de tip întreg unde x=15 si y =23. Ce valori vor avea aceste variabile
după executarea următoarelor secvențe de instrucțiuni?
Citeste x, y
z x+y
Xty
y y+z
Scrie x, y, z​


Răspuns :

x=15, y=23

citeste x, y

z=x+y // z=38

x=y // x devine 23

y=y+z // y devine 23+38=61

scrie x, y, z  

   => 23, 61, 38