Você está na página 1de 1

Verifique o valor lógico das expressões, como verdadeiro (V) ou falso (F).

Sendo as variáveis a = 3, b = 5, c = 7, d = 10, e = true, f = false

1 a=1
2 c>d
3 b<d
4 c>2
5 2 >c
5 c >= a + 2
6 d * a <= b + 2*c
7 c > b and a < d
8 a != b-2
9 d–c>b
10 (c > 5) and (d = 5*2)
11 (c < b ) or (d – a > 5*2)
12 e
13 not e
14 e or f
15 e or not f
16 not f and (e or f)
17 not (e and f)
18 not (e XOR f)
19 e and (c < a)
20 (c + b < d) or (e and (a + b< 10))
21 f and (e XOR (b > 3)) or (c <= 2*a)
22 a + b < (2*d – 7)) or f and e

Você também pode gostar