KnowledgeBoat Logo

Computer Applications

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

Java Conditional Stmts

48 Likes

Answer


if (x == y)
    if (x == z)
        x = 1; 
    else 
        y = 1;
else
    z = 1;

Answered By

32 Likes


Related Questions