Computer Applications

Rewrite the following program segment using logical operators:

if(x > 5)
if(x > y)
    System.out.println(x + y);

Java Operators

3 Likes

Answer

if ( x > 5 && x > y)
System.out.println(x+y);

Answered By

2 Likes


Related Questions