Advertisements
Advertisements
Question
Rewrite the following program segment using logical operators:
if (x>5)
if (x>y)
System.out.println (x+y);Code Writing
Advertisements
Solution
if(x>5 && x>y)
System.out.println(x+y);shaalaa.com
Is there an error in this question or solution?
