Computer Science, asked by anusharmas527, 5 months ago

8. If the values of p,q,rare: p= 30, 9= 25, r=50. Evaluate
(p>=q) || !(r = =q) && (r <p)
the following​

Answers

Answered by gyaneshwarsingh882
0

Answer:

Explanation:

p && q || r

2) !q || p && r

3) --i * i + j * j == k * k

4) !(p && q) || (p && r)

5) (!p || q) && (!q || p)

6) q || r || p || s

7) -i > -j || (s && !s || s)

8) !(q && r) && (q && p) || (p && r) && !(s && p)

9) ++i == --j

10) p && i <= k || !(s && p)

11) r || !r && --k % j >= j % i

12) !(p && (!p || s)) || s

13) !(!s && (!p || s)) || p

14) i < l || i == l || i > l

For what (combination of) values of the primitives do the following expressions evaluate to true? Wherever unspecified, you may assume that p, q, r, and s are boolean primitives and that i and j are int primitives. Answers

Similar questions