Computer Applications

If((p>q) && (q>r)) then

  1. q is the smallest number
  2. q is the greatest number
  3. p is the greatest number
  4. none

Java Conditional Stmts

11 Likes

Answer

p is the greatest number

Reason — Assuming that the && operator results in 'true', both the conditions (p>q) and (q>r) should be true. Hence, p is the greatest number.

Answered By

6 Likes


Related Questions