Răspuns:
1.
a)(12+3)/4-5%2 = 15/4-1 = 3-1 = 2
b)(32+15)-12/4+2*(5-7%3) = 47-3+2*(5-1) = 47-3+2*4 =47-3+8 = 44+8=52
c)(231/10)%10+10*(231/100)%10 = 23%10+10*2%10 = 3
d)(54%10)*10+54/10 = 4*10+5 = 45
2.x=12, y=15, z=31
a)x/3+y%4 = 12/3+15%4 = 4+3 = 7
b)2*x+3*y+z%10 = 2*12+3*15+31%10 = 24+45+1 = 70
c)y%10-x%10 = 15%10-12%10 = 5-2 = 3
d)(x/10)+(x/10)%10 = (12/10)+(12/10)%10 = 1+1%10 = 2
e)(x/10+y/10)*2+z/3 = (12/10+15/10)*2+31/3 = (1+1)*2+10 = 2*2+10 = 4+10 = 14
f)x-5+(z/2-1) = 12-5+(31/2-1) = 12-5+(15-1) = 12-5+14 = 7+14 = 21
Explicație: