Computer Applications

Format the following if statements with indentation:if (x == y) {if (y == z) x = 1; y = 2; } else z = 1;

Java Conditional Stmts

32 Likes

Answer


if (x == y)
{
    if (y == z) 
        x = 1; 
    y = 2; 
} 
else 
    z = 1;

Answered By

19 Likes


Related Questions