Răspuns:
a) (12+3)/4-5%2
= 15/4-1
=3-1
=2
b) (231/10)%10+10*(231/100)%10
=23%10+10*2%10
=3+20%10
=3+0
=3
(32+15)-12/4+2*(5-7%3
=47-3+2*(5-1)
=47-3+8
=44+8
=53
d) (54%10)*10+54/10
=4*10+5
=40+5
=45
e) 3452%100/10+34/10*10-27/6
=52/10+3*10-4
=5+30-4
=35-4
=31
f) 6>5 or 9<=10
T or T
=> T
g) (3756/10%100>745/10)
375%100>74
75>74 "T"
(37/5*5>=37*5/5)
5*5>=185/5
25>=37 "F"
=> T and F
=> F
h) 3*4-7/2
=12-3
=9
i) 35%10-8*3/7
=5-24/7
=5-3
=2
j) 2*(34/10+34%10)-3
=2*(3+4)-3
=2*7-3
=14-3
=11
k) 34/(5*3/6-7%6)+5/8
=34/(15/6-1)+0
=34/(2-1)+0
=34/1+0
=34+0
=34
Explicație:
% --> reprezinta restul impartirii;
/ --> reprezinta catul intreg al impartirii;
* --> reprezinta imnultirea ;
" % "
" / " se efectueaza in ordinea in care apar;
" * "
iar "+" si " - " dupa efectuarea operatorilor de mai sus.